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

Hudson commented on NUTCH-2763:
-------------------------------

SUCCESS: Integrated in Jenkins build Nutch-trunk #3665 (See 
[https://builds.apache.org/job/Nutch-trunk/3665/])
NUTCH-2763 protocol-okhttp (store.http.headers): add whitespace in (snagel: 
[https://github.com/apache/nutch/commit/944941746708279340fb3be879802b1c899a48da])
* (edit) 
src/plugin/protocol-okhttp/src/java/org/apache/nutch/protocol/okhttp/OkHttp.java
* (edit) 
src/plugin/protocol-okhttp/src/test/org/apache/nutch/protocol/okhttp/TestBadServerResponses.java


> protocol-okhttp (store.http.headers): add whitespace in status line after 
> status code also when message is empty
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: NUTCH-2763
>                 URL: https://issues.apache.org/jira/browse/NUTCH-2763
>             Project: Nutch
>          Issue Type: Bug
>          Components: plugin, protocol
>    Affects Versions: 1.16
>            Reporter: Sebastian Nagel
>            Assignee: Sebastian Nagel
>            Priority: Minor
>             Fix For: 1.17
>
>
> [RFC 7230|https://tools.ietf.org/html/rfc7230#section-3.1.2] describes the 
> HTTP response status line as:
> {noformat}
> status-line = HTTP-version SP status-code SP reason-phrase CRLF
> {noformat}
> The "reason-phrase" is allowed to be empty, but the white space between 
> status-code and reason-phrase is mandatory. The  protocol-okhttp, when 
> storing the HTTP response header (store.http.headers = true), does not add a 
> white space when the message is empty, even if the original response header 
> contained a white space after the status code.
> Note: protocol-http add the status line literally.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to