You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Mathias (JIRA)" <ji...@apache.org> on 2011/03/16 14:27:29 UTC
[jira] Updated: (BUILDR-573) upload via HTTP send PUT request with
incorrect Content-Type header
[ https://issues.apache.org/jira/browse/BUILDR-573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mathias updated BUILDR-573:
---------------------------
Attachment: fix.patch
Since the ruby HTTP implementation does not let you send PUT requests without Content-Type header we need to manually set a proper Content-Type header.
"application/octet-stream" seems to be good choice.
> upload via HTTP send PUT request with incorrect Content-Type header
> -------------------------------------------------------------------
>
> Key: BUILDR-573
> URL: https://issues.apache.org/jira/browse/BUILDR-573
> Project: Buildr
> Issue Type: Bug
> Components: Core features
> Affects Versions: 1.4.5
> Reporter: Mathias
> Attachments: fix.patch
>
> Original Estimate: 5m
> Remaining Estimate: 5m
>
> When uploading via HTTP buildr sends PUT requests with "Content-Type: application/x-www-form-urlencoded", which is incorrect and can lead to issues with some repository managers (e.g. Nexus 1.9).
> The fix would be to either send no Content-Type header at all (in which case the server is allowed to guess the Content-Type) or send "application/octet-stream".
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira