jira-importer opened a new issue, #948:
URL: https://github.com/apache/httpcomponents-core/issues/948

   **[Tsarevskiy 
Andrey](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=daxzel)** 
opened 
**[HTTPCORE-415](https://issues.apache.org/jira/browse/HTTPCORE-415?redirect=false)**
 and commented
   
   I'm using parsing mechanism this way:
   
   val sessionInputBuffer = new SessionInputBufferImpl(new 
HttpTransportMetricsImpl(), 2048)
   sessionInputBuffer.bind(new 
ByteArrayInputStream(message.getBytes(Consts.ASCII)))
   val requestParser = new DefaultHttpRequestParser(sessionInputBuffer)
   HttpEntityEnclosingRequest request = requestParser.parse()
   
   with message:
   "POST /moscow/ HTTP/1.1
   Host: ??
   Content-Length: 130
   x-hub-signature: ??
   content-type: application/json
   accept-encoding: gzip, deflate
   user-agent: Python-httplib2/0.8 (gzip)
   
   [{"changed_aspect": "media", "object": "tag", "object_id": “??”, "time": 
1450570768, "subscription_id": ??, "data": {}}]"
   
   As you see the content should be "[{"changed_aspect": "media", "object": 
"tag", "object_id": “??”, "time": 1450570768, "subscription_id": ??, "data": 
{}}]" but http commons doesn't fill the field - "request.getEntity". It is null
   
   
   
   ---
   
   **Affects:** 4.4.4
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to