Uploaded image for project: 'Nutch'
  1. Nutch
  2. NUTCH-2763

protocol-okhttp (store.http.headers): add whitespace in status line after status code also when message is empty

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.16
    • Fix Version/s: 1.17
    • Component/s: plugin, protocol
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      RFC 7230 describes the HTTP response status line as:

      status-line = HTTP-version SP status-code SP reason-phrase CRLF
      

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                snagel Sebastian Nagel
                Reporter:
                snagel Sebastian Nagel
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: