[
https://issues.apache.org/jira/browse/SLING-7357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dirk Rudolph updated SLING-7357:
--------------------------------
Description:
Currently SimpleHttpDistributionTransport only adds Connection and Digest http
header (if configured to do so) to the http request. When integrating into
other systems then sling the API might require the content type of the package
transmitted to be present.
I see to options to support that:
a) implement configureable headers for the http transport similar to the
timeouts. This might clash with headers set by the implementation
b) let the serializer specify the type of the content it generate. This will be
an API change in the core bundle.
>From my perspective b) will be simpler to implement.
was:
Currently the
[HttpConfiguration|https://github.com/apache/sling-org-apache-sling-distribution-core/blob/master/src/main/java/org/apache/sling/distribution/transport/impl/HttpConfiguration.java#L24]
supports only timeouts to be configured.
Especially integrating content distribution into other external systems that
offer http APIs to do so might require certain headers, like the Content-Type
of the request.
Summary: Send Content-Type header along with the DistributionPackage's
content (was: Support configuration of http headers for
SimpleDistributionAgent)
> Send Content-Type header along with the DistributionPackage's content
> ---------------------------------------------------------------------
>
> Key: SLING-7357
> URL: https://issues.apache.org/jira/browse/SLING-7357
> Project: Sling
> Issue Type: Improvement
> Components: Content Distribution
> Reporter: Dirk Rudolph
>
> Currently SimpleHttpDistributionTransport only adds Connection and Digest
> http header (if configured to do so) to the http request. When integrating
> into other systems then sling the API might require the content type of the
> package transmitted to be present.
> I see to options to support that:
> a) implement configureable headers for the http transport similar to the
> timeouts. This might clash with headers set by the implementation
> b) let the serializer specify the type of the content it generate. This will
> be an API change in the core bundle.
> From my perspective b) will be simpler to implement.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)