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

Некорректное поведение при редиректе 301 #137

Open
Fedos-git opened this issue Apr 2, 2024 · 0 comments

Comments

@Fedos-git
Copy link

При редиректе POST запроса по коду 301 происходит автоматическое перенаправление, но тело запроса и заголовки очищаются. В результате получается некорректный запрос, на который мы получаем малоинформативный, вводящий в заблуждение ответ (400, no body, no content-type и другие). Это сильно затрудняет анализ ошибок.
Предложение - либо не редиректить POST запросы по 301, возвращать код ответа и новый URL, либо редиректить с заголовками и телом.

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

1 participant