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

Michele ZuccalĂ  commented on DEFT-153:
--------------------------------------

Hi Johnathan,

I've take a look on deft-178, and it seems promising.
If you want, to avoid trouble, I can wait to attach a final patch 

> This is all just my opinion though, and I am not trying to push you into a 
> particular decision just discuss things a 
> little. 

Sure, I thought, and our discussion was very useful :)
Thanks

> Problems with PUT request
> -------------------------
>
>                 Key: DEFT-153
>                 URL: https://issues.apache.org/jira/browse/DEFT-153
>             Project: Deft
>          Issue Type: New Feature
>          Components: Core
>            Assignee: Johnathan Meehan
>             Fix For: 0.4.0
>
>         Attachments: deft-153_preview.patch
>
>
> Hi,
> It seems that PUT requests that contain a large body are truncated.
> Temporarily, I resolved with the following workaround in the method 
> HttpRequest.of ()
>     if (requestLine.contains ("POST") | | requestLine.contains ("PUT")) {
>          int ContentLength = Integer.parseInt (generalHeaders.get 
> ("content-length"));
>          if (ContentLength> body.length ()) {
>              return new PartialHttpRequest (requestLine, generalHeaders, 
> body);
>         }
>     }
> I hope it can be helpful:)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to