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

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.16
    • 1.17
    • plugin, protocol
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: