xuzikun2003 opened a new pull request #459:
URL: https://github.com/apache/knox/pull/459


   ## What changes were proposed in this pull request?
   
   Currently, Knox only supports the Content-Encoding "gzip" and the 
Content-Encoding "deflate" is not supported. When the upstream server (such as 
Livy 0.7 Server) returns a response which is deflated, Knox does not know how 
to decode it.
   
   The current code only considers the "gzip" format and the "deflate" format 
is not considered. We should also handle the case when the format is "deflate" 
and use InflaterInputStream to read the in-bound response and use 
DeflaterOutputStream to write the out-bound response.
   
   Here is the JIRA (https://issues.apache.org/jira/browse/KNOX-2622) that 
describes this issue.
   
   ## How was this patch tested?
   Existing unit tests and newly added unit tests.
   
   
   Please review [Knox Contributing 
Process](https://cwiki.apache.org/confluence/display/KNOX/Contribution+Process#ContributionProcess-GithubWorkflow)
 before opening a pull request.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to