aspnet / BasicMiddleware

[Archived] Basic middleware components for ASP.NET Core. Project moved to https://github.com/aspnet/AspNetCore
Apache License 2.0
169 stars 84 forks source link

Remove '?' prefix from QUERY_STRING server variable #148

Closed BrennanConroy closed 8 years ago

BrennanConroy commented 8 years ago

https://www.iis.net/learn/extensions/url-rewrite-module/url-rewrite-module-configuration-reference#Accessing_URL_Parts_from_a_Rewrite_Rule Shows the value of {QUERY_STRING} from http://www.mysite.com/content/default.aspx?tabid=2&subtabid=3 to be tabid=2&subtabid=3

I also, did a quick test with the IIS Rewrite Module and it doesn't seem to include ? in the {QUERY_STRING}

jkotalik commented 8 years ago

Good catch. Should be a one line fix in the server variables. Check mod_rewrite if you get the chance for its behavior.

BrennanConroy commented 8 years ago

I will be checking mod_rewrite later

BrennanConroy commented 8 years ago

mod_rewrite has the same issue since they both use the QueryStringSegment class