vcd
Results
1
comments of
vcd
代码中所有的`file_storage.get_file_response`已经正确添加了`Content-Disposition`header,所以正常来说不会有问题(wget 尊重这个 Header,会重新设置正确的文件名) 问题更加复杂 在[@share_api.get("/select/")](https://github.com/vastsa/FileCodeBox/blob/6fcf26fcbe33af984af434b8ecf7cbc01fe89710/apps/base/views.py#L110) 这里的定义中的路径定义是以斜杠结尾,fastapi 的默认行为是会发生一次重定向,即期待的行为是 ```shell curl https://share.lanol.cn/share/select?code=12345 # => 307 Temporary Redirect curl https://share.lanol.cn/share/select/?code=12345 ``` 但是实际行为是 ```shell curl https://share.lanol.cn/share/select?code=12345 # => 307 Temporary Redirect curl https://share.lanol.cn//share/select/?code=12345 #...