Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Отсутствие файла должно давать 404, а не 302 на страницу 404 #29

Open
dmpas opened this issue Aug 15, 2022 · 0 comments
Assignees

Comments

@dmpas
Copy link

dmpas commented Aug 15, 2022

PS C:\Users\dmpas> curl -v https://oscript.io/downloads/2_0_3/x64/zip
< HTTP/1.1 302 Found
...
< Location: /home/page404
...

Итого мы перенаправляемся на page404, успешно качаем страницу с кодом 200, а потом наивно пытаемся распаковать zip-архив.
Правильно сразу отдать 404

@otymko otymko self-assigned this Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants