Problem with a URL that ends with

前端 未结 4 809
甜味超标
甜味超标 2020-12-16 14:59

I have a big problem. There are devices in live that send the URL \"/updates \". It\'s a typo of the developer for those devices. In the server logs, it looks like \"/upd

4条回答
  •  悲&欢浪女
    2020-12-16 15:19

    Ok, this is an old thread, but I like to add a workable solution that works for all ASP.NET versions. Have a look at this answer in a related thread. It basically comes down to registering to the event PreSendRequestHeaders in global.asax.cs.

    Alternatively, when on ASP.NET 4.0 or higher, use in web.config.

提交回复
热议问题