You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Vanjikumaran Sivajothy (JIRA)" <ji...@apache.org> on 2016/06/28 23:42:10 UTC

[jira] [Comment Edited] (SYNAPSE-992) Adding the default Content-Type when there is no body in the response

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

Vanjikumaran Sivajothy edited comment on SYNAPSE-992 at 6/28/16 11:42 PM:
--------------------------------------------------------------------------

I tried to reproduce with the latest build and not able to recreate. Hence i am closing this issue. 

Thanks,
Vanji


was (Author: vanji@wso2.com):
I have reproduced with the latest build and not able to recreate. Hence i am closing this issue. 

Thanks,
Vanji

> Adding the default Content-Type when there is no body in the response
> ---------------------------------------------------------------------
>
>                 Key: SYNAPSE-992
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-992
>             Project: Synapse
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: 2.1
>            Reporter: Vanjikumaran Sivajothy
>            Assignee: Hiranya Jayathilaka
>            Priority: Blocker
>              Labels: patch
>             Fix For: FUTURE
>
>         Attachments: Synapse_2_2_0_SNAPSHOT_SYNAPSE-992.diff
>
>
> 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org