OpenSearch/modules/transport-netty4
Jay Modi 01502893eb HTTP transport stashes the ThreadContext instead of the RestController (#23456)
Previously, the RestController would stash the context prior to copying headers. However, there could be deprecation
log messages logged and in turn warning headers being added to the context prior to the stashing of the context. These
headers in the context would then be removed from the request and also leaked back into the calling thread's context.

This change moves the stashing of the context to the HttpTransport so that the network threads' context isn't
accidentally populated with warning headers and to ensure the headers added early on in the RestController are not
excluded from the response.
2017-03-02 14:44:01 -05:00
..
licenses Build: Remove extra copies of netty license (#23361) 2017-02-24 14:40:07 -08:00
src HTTP transport stashes the ThreadContext instead of the RestController (#23456) 2017-03-02 14:44:01 -05:00
build.gradle HTTP transport stashes the ThreadContext instead of the RestController (#23456) 2017-03-02 14:44:01 -05:00