[ 
https://issues.apache.org/jira/browse/LIBCLOUD-362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13733488#comment-13733488
 ] 

Tomaz Muraus commented on LIBCLOUD-362:
---------------------------------------

[~bobt] Sorry for the delay. I've pushed a changed which I proposed in my 
previous comment to trunk.

Now we send Content-Length 0 with POST and PUT request if data is '' (empty 
string). This should work fine unless GoGrid also requires users to send 
Content-Length 0 with GET requests.

Can you please confirm it works correctly?

Thanks!
                
> GoGrid bug: Length Required
> ---------------------------
>
>                 Key: LIBCLOUD-362
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-362
>             Project: Libcloud
>          Issue Type: Bug
>            Reporter: Bob Thompson
>         Attachments: LIBCLOUD-362.patch
>
>
> GoGrid connection requests fail since GoGrid doesn't allow "zero-byte files" 
> (HTTP 411). Right now, {data} defaults to None and therefore is not encoded 
> to Content-Length.
> The data passed to the connection request should check for None instead of 
> empty string and None. This way defaulting GoGrid to pass an empty string (as 
> it was before) will fix the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to