Prepend with proto
authorJakub Skoczen <jakub@indexdata.dk>
Tue, 7 May 2013 12:41:44 +0000 (14:41 +0200)
committerJakub Skoczen <jakub@indexdata.dk>
Tue, 7 May 2013 12:41:44 +0000 (14:41 +0200)
src/filter_http_rewrite.cpp

index d6a801e..0ee1afb 100644 (file)
@@ -91,6 +91,7 @@ void yf::HttpRewrite::rewrite_reqline (mp::odr & o, Z_HTTP_Request *hreq,
     else
     {
         //TODO what about proto
+        path += "http://";
         path += z_HTTP_header_lookup(hreq->headers, "Host");
         path += hreq->path; 
     }