Uploaded image for project: 'Synapse'
  1. Synapse
  2. SYNAPSE-587

NHTTP Transport Does Not Handle Responses With No Content-Type Header Properly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2, NIGHTLY
    • 2.0
    • Transports
    • None
    • Any

    Description

      Currently the NHTTP transport would assume an empty payload for response messages which do not have the HTTP Content-Type header. According to the HTTP/1.1 specification this should be handled as follows.

      <quote>
      Any HTTP/1.1 message containing an entity-body SHOULD include a Content-Type header field defining the media type of that body. If and only if the media type is not given by a Content-Type field, the recipient MAY attempt to guess the media type via inspection of its content and/or the name extension(s) of the URI used to identify the resource. If the media type remains unknown, the recipient SHOULD treat it as type "application/octet-stream".
      </quote>

      Attachments

        Activity

          People

            hiranya Hiranya Kasub Jayathilaka
            hiranya Hiranya Kasub Jayathilaka
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: