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

Adding the default Content-Type when there is no body in the response

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 2.1
    • FUTURE
    • Transports

    Description

      When there is no content type in the response synapse set the default content type as "application/octet-stream".
      The HTTP Spec only talks about dealing with Content-Types and assuming "application/ocet-stream" for messages, containing an entity-body [1]. As we are not providing an entity body, the ESB should not infer a Content-Type.
      Instead of, the ESB just should pass through the response to the client without adding a Content-Type.

      [1] http://www.w3.org/Protocols/rfc2616/rfc2616-sec7.html#sec7.2.1

      Attachments

        1. Synapse_2_2_0_SNAPSHOT_SYNAPSE-992.diff
          3 kB
          Vanjikumaran Sivajothy

        Activity

          People

            hiranya Hiranya Kasub Jayathilaka
            vanjikumaran@gmail.com Vanjikumaran Sivajothy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: