【发布时间】:2021-10-30 12:38:52
【问题描述】:
我们在 .NetCore3.1 (https://www.example.com) 上创建了一个 servicestack API。当使用 https://www.example.com/http://test 或 https://www.example.com/php://test 调用 api 时,我们会得到 IOException 而不是 404 响应。
它看起来像是在寻找我们托管 API 的特定文件夹。
HostConfig 中是否有任何标志可用于禁用此验证?
错误:
-
https://www.example.com/http://test:
IOException: The filename, directory name, or volume label syntax is incorrect. : '{location}\http:' -
https://www.example.com/php://test :
IOException: The filename, directory name, or volume label syntax is incorrect. : '{location}\php:'
【问题讨论】: