diff --git a/uppsrc/Core/InetUtil.cpp b/uppsrc/Core/InetUtil.cpp index 86655167d..fe4543148 100644 --- a/uppsrc/Core/InetUtil.cpp +++ b/uppsrc/Core/InetUtil.cpp @@ -592,11 +592,11 @@ bool HttpHeader::ParseSCGI(const String& scgi_hdr) // the query string, use it exactly as provided. Otherwise, if we have // a query_string, append it with the '?' separator. - if(uri.Find('?') >= 0 || qs.IsEmpty()) - f2 = uri; - else - f2 = uri + '?' + qs; - + if(uri.Find('?') >= 0 || qs.IsEmpty()) + f2 = uri; + else + f2 = uri + '?' + qs; + first_line = f1 + ' ' + f2 + ' ' + f3; if(!IsNull(content_length) && content_length && fields.Find("content-length") < 0) fields.Add("content-length", AsString(content_length));