On Mon, 2013-03-04 at 00:12 -0800, David Pilato wrote:
> In src/main/java/org/elasticsearch/http/HttpServer.java:
> 
> > @@ -180,7 +180,8 @@ void handlePluginSite(HttpRequest request, HttpChannel channel) {
> >              }
> >  
> >              // If a trailing / is missing, we redirect to the right page #2654
> > -            channel.sendResponse(new HttpRedirectRestResponse(request.rawPath()+"/"));
> > +            String redirect = "http://" + request.header("Host") + request.rawPath()+"/";
> 
> Not sure of this line. I think we can break things here.
> Should the Location be mandatory with http://... form? I mean that
> Location can not be somehow relative like:
> Location: /_plugin/mysite/

According to wikipedia, the spec says that Location should be absolute,
but most browsers handle URIs

http://en.wikipedia.org/wiki/URL_redirection#HTTP_status_codes_3xx