taskadapter / redmine-java-api

Redmine Java API
Apache License 2.0
269 stars 162 forks source link

Content-Length not set when creating an attachment #233

Closed wiax closed 8 years ago

wiax commented 8 years ago

Transport.upload doesn't set the Content-Length on the HTTP request. As result, Redmine server complains about the missing HTTP header named as Content-Length.

PMitrafanau commented 8 years ago

Library uses chunked transfer encoding (you can see InputStreamEntity with content length set to -1), so most probably your server is not configured to support it. I used docker container providing Redmine which used WEBrick and had problems too.

alexeyOnGitHub commented 8 years ago

this is a duplicate of #78