You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apex.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/02/19 19:39:18 UTC
[jira] [Commented] (APEXCORE-350) STRAM's REST service sometimes
returns duplicate and conflicting Content-Type headers
[ https://issues.apache.org/jira/browse/APEXCORE-350?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15154622#comment-15154622 ]
ASF GitHub Bot commented on APEXCORE-350:
-----------------------------------------
GitHub user davidyan74 opened a pull request:
https://github.com/apache/incubator-apex-core/pull/231
APEXCORE-350 clear content-type header for each request, otherwise th…
…ere will be two conflicting content-type headers for each response
Conflicts:
engine/src/main/java/com/datatorrent/stram/webapp/StramWebServices.java
Conflicts:
engine/src/main/java/com/datatorrent/stram/webapp/StramWebServices.java
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/davidyan74/incubator-apex-core APEXCORE-350
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-apex-core/pull/231.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #231
----
commit 5a27267e9e63e4c1a1504d7de0fe5e4903c6d4bf
Author: David Yan <da...@datatorrent.com>
Date: 2016-02-19T17:58:44Z
APEXCORE-350 clear content-type header for each request, otherwise there will be two conflicting content-type headers for each response
Conflicts:
engine/src/main/java/com/datatorrent/stram/webapp/StramWebServices.java
Conflicts:
engine/src/main/java/com/datatorrent/stram/webapp/StramWebServices.java
----
> STRAM's REST service sometimes returns duplicate and conflicting Content-Type headers
> -------------------------------------------------------------------------------------
>
> Key: APEXCORE-350
> URL: https://issues.apache.org/jira/browse/APEXCORE-350
> Project: Apache Apex Core
> Issue Type: Bug
> Reporter: David Yan
> Assignee: David Yan
>
> {code}
> $ curl -D - http://hostname:38184/ws/v2/stram/logicalPlan/operators/join/attributes
> HTTP/1.1 200 OK
> Cache-Control: no-cache
> Expires: Fri, 19 Feb 2016 18:02:17 GMT
> Date: Fri, 19 Feb 2016 18:02:17 GMT
> Pragma: no-cache
> Expires: Fri, 19 Feb 2016 18:02:17 GMT
> Date: Fri, 19 Feb 2016 18:02:17 GMT
> Pragma: no-cache
> Content-Type: text/plain; charset=utf-8
> Content-Type: application/json
> Transfer-Encoding: chunked
> Server: Jetty(6.1.26.cloudera.4)
> {}
> {code}
> This may confuse the web client on which content-type should be used.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)