You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "prabath ariyarathna (JIRA)" <ji...@apache.org> on 2016/05/25 17:11:12 UTC
[jira] [Comment Edited] (SYNAPSE-1016) Cannot preserve some
required transport headers in the passthru and nhttp transports
[ https://issues.apache.org/jira/browse/SYNAPSE-1016?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15300435#comment-15300435 ]
prabath ariyarathna edited comment on SYNAPSE-1016 at 5/25/16 5:10 PM:
-----------------------------------------------------------------------
Preserving HTTP headers are important when executing backend services via applications/middleware. This is because most of the time certain important headers are removed or modified by the applications/middleware which run the communication.
The existing version of our Synapse only supported “server” and “user agent” header fields to preserve with, but with this fix, we’ve introduced a new property (*http.headers.preserve*) for the passthru (*repository/conf/passthru-http.properties*) and Nhttp(*repository/conf/nhttp.properties*) transporters to preserve more HTTP headers.
*Passthru transporter – support header fields*
* Location
* Keep-Alive
* Content-Length
* Date
* Server
* User-Agent
* Host
*Nhttp transport – support headers*
* Server
* User-Agent
* Date
was (Author: prabathariyarathna):
Preserving HTTP headers are important when executing backend services via applications/middleware. This is because most of the time certain important headers are removed or modified by the applications/middleware which run the communication.
The existing version of our Synapse only supported “server” and “user agent” header fields to preserve with, but with this fix, we’ve introduced a new property (*http.headers.preserve*) for the passthru (*repository/conf/passthru-http.properties*) and Nhttp(*repository/conf/nhttp.properties*) transporters to preserve more HTTP headers.
*Passthru transporter – support header fields*
* Location
* Keep-Alive
* Content-Length
* Date
*Server
* User-Agent
* Host
*Nhttp transport – support headers*
* Server
* User-Agent
* Date
> Cannot preserve some required transport headers in the passthru and nhttp transports
> ------------------------------------------------------------------------------------
>
> Key: SYNAPSE-1016
> URL: https://issues.apache.org/jira/browse/SYNAPSE-1016
> Project: Synapse
> Issue Type: Improvement
> Reporter: prabath ariyarathna
> Assignee: Hiranya Jayathilaka
> Attachments: http_headers_preserve.diff
>
>
> We cannot preserve some important transport level headers like Location, Date, Keep-Alive, Content-Length
--
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