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

ASF GitHub Bot commented on FLINK-5109:
---------------------------------------

Github user greghogan commented on the issue:

    https://github.com/apache/flink/pull/2892
  
    Hi @Hapcy, thanks for submitting this PR.
    
    It's best to create a feature branch for each ticket rather than committing 
to master. You can fix this by creating a branch (git checkout master ; git 
checkout -b 5109_invalid_content_encoding_header_in_rest_api_responses) then 
resetting master (git checkout master ; git reset --hard 7f1c76d^ ; git rebase 
upstream/master) then rebasing against master (git checkout 
5109_invalid_content_encoding_header_in_rest_api_responses ; git rebase master 
; git push -f origin 
5109_invalid_content_encoding_header_in_rest_api_responses).
    
    Something like that. Make a copy of everything first.


> Invalid Content-Encoding Header in REST API responses
> -----------------------------------------------------
>
>                 Key: FLINK-5109
>                 URL: https://issues.apache.org/jira/browse/FLINK-5109
>             Project: Flink
>          Issue Type: Bug
>          Components: Web Client, Webfrontend
>    Affects Versions: 1.1.0, 1.2.0, 1.1.1, 1.1.2, 1.1.3
>            Reporter: Móger Tibor László
>              Labels: http-headers, rest_api
>
> On REST API calls the Flink runtime responds with the header 
> Content-Encoding, containing the value "utf-8". According to the HTTP/1.1 
> standard this header is invalid. ( 
> https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.5 ) 
> Possible acceptable values are: gzip, compress, deflate. Or it should be 
> omitted.
> The invalid header may cause malfunction in projects building against Flink.
> The invalid header may be present in earlier versions aswell.
> Proposed solution: Remove lines from the project, where CONTENT_ENCODING 
> header is set to "utf-8". (I could do this in a PR.)
> Possible solution but may need further knowledge and skills than mine: 
> Introduce content-encoding. Doing so may need some configuration beacuse then 
> Flink would have to encode the responses properly (even paying attention to 
> the request's Accept-Encoding headers).



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

Reply via email to