Fix ugliness with async checking in router

yes we should


On Mon, Jun 9, 2014 at 3:05 PM, xvrl <notifications@github.com> wrote:

> In server/src/main/java/io/druid/server/AsyncQueryForwardingServlet.java:
>
> > @@ -210,7 +209,7 @@ protected void doPost(
> >        ctx = req.startAsync(req, resp);
> >        final AsyncContext asyncContext = ctx;
> >
> > -      if (req.getAttribute(DISPATCHED) != null) {
> > +      if (req.getDispatcherType() == DispatcherType.ASYNC) {
>
> can we make doGet and doPost share more code and avoid copy pasting?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/metamx/druid/pull/589/files#r13567784>.
>