Skip to content

Commit

Permalink
#103 set accept-encoding=gzip,deflate as default when ps comunicates …
Browse files Browse the repository at this point in the history
…with es [vip:platform/pallas#939]
  • Loading branch information
NathanChan committed Jul 18, 2019
1 parent 6a5bf96 commit b91b3b6
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ public void run(AbstractFilterContext filterContext, SessionContext sessionConte

// 用于http转发
request.setHeader(HttpHeaders.Names.HOST, sessionContext.getServiceInfo().getBackendAddress());

// 默认开启gzip压缩(覆盖PallasRestClient端强制加的lz4压缩)
request.setHeader(HttpHeaders.Names.ACCEPT_ENCODING,HttpHeaders.Values.GZIP_DEFLATE);


super.run(filterContext, sessionContext);
}

Expand Down

0 comments on commit b91b3b6

Please sign in to comment.