Is IIS performing an illegal character substitution? If so, how to stop it?

后端 未结 3 1066
执笔经年
执笔经年 2020-12-14 15:14

Context: ASP.NET MVC running in IIS, with a a UTF-8 %-encoded URL.

Using the standard project template, and a test-action in HomeController like:

<
3条回答
  •  再見小時候
    2020-12-14 15:44

    Ultimately, to get around this, I had to use request.ServerVariables["HTTP_URL"] and some manual parsing, with a bunch of error-handling fallbacks (additionally compensating for some related glitches in Uri). Not great, but only affects a tiny minority of awkward requests.

提交回复
热议问题