You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Tsarevskiy Andrey (JIRA)" <ji...@apache.org> on 2015/12/20 15:39:46 UTC
[jira] [Created] (HTTPCORE-415) DefaultHttpRequestParser doesn't
fill HttpEntityEnclosingRequest.entity
Tsarevskiy Andrey created HTTPCORE-415:
------------------------------------------
Summary: DefaultHttpRequestParser doesn't fill HttpEntityEnclosingRequest.entity
Key: HTTPCORE-415
URL: https://issues.apache.org/jira/browse/HTTPCORE-415
Project: HttpComponents HttpCore
Issue Type: Bug
Components: HttpCore
Affects Versions: 4.4.4
Reporter: Tsarevskiy Andrey
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
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org