Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update FastCGI to use REQUEST_URI parameter

FastCGI WorkerRequest updated to use the REQUEST_URI fastcgi parameter as raw url for requests.
  • Loading branch information...
commit ad7193040ca558d9bf1a9f422989d0cdcdb26d65 1 parent 02c073d
@JohnACarruthers JohnACarruthers authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 src/Mono.WebServer.FastCgi/WorkerRequest.cs
View
7 src/Mono.WebServer.FastCgi/WorkerRequest.cs
@@ -150,6 +150,13 @@ public override string GetRawUrl ()
{
if (raw_url != null)
return raw_url;
+
+ string fcgiRequestUri = responder.GetParameter ("REQUEST_URI");
+ if (fcgiRequestUri != null)
+ {
+ raw_url = fcgiRequestUri;
+ return raw_url;
+ }
StringBuilder b = new StringBuilder (GetUriPath ());
string query = GetQueryString ();
Please sign in to comment.
Something went wrong with that request. Please try again.