fix gzip compression

- fixes compression not working for POST requests
- router now forwards raw bytes instead of decompressing
- cleanded up router servlet initialization
- add test for gzip on get and post methods
- use Jersey annotation when possible in QueryResource
moved to separate PR

On Wed, Dec 10, 2014 at 5:24 PM, Fangjin Yang <notifications@github.com>
wrote:

> In
> server/src/main/java/io/druid/server/router/TieredBrokerHostSelector.java
> <https://github.com/metamx/druid/pull/957#discussion-diff-21652534>:
>
> > @@ -201,7 +201,7 @@ public String getDefaultServiceName()
> >    public Pair<String, ServerDiscoverySelector> getDefaultLookup()
> >    {
> >      final String brokerServiceName = tierConfig.getDefaultBrokerServiceName();
> > -    final ServerDiscoverySelector retVal = selectorMap.get(CuratorServiceUtils.makeCanonicalServiceName(brokerServiceName));
> > +    final ServerDiscoverySelector retVal = selectorMap.get(brokerServiceName);
>
> why revert this?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/metamx/druid/pull/957/files#r21652534>.
>