URL Auto Redirect Error with Additional Slash

Bug description:
When make an endpoint in Flask with an additional slash behind it e.g. https://www.example.com/test/ and you send a POST request to https://www.example.com/testreplit do sends a 307/308 status code but Postman rejects it with Error: getaddrinfo ENOTFOUND test(“test” in the error message is the route). However, the auto-redirect runs fine with GET requests.

Expected vs Current Behavior:
Before the deployment update, the auto-redirect for POST requests is fine. Somehow now the redirect gets blocked by Postman.

Steps to reproduce:
Make a Python project, use Flask/FastAPI, and make a route with “/” in the end (allow POST request). Run and send POST request using Postman without the trailing “/”.

Bug appears at this link: Any

Screenshot(s)/Screen Recording:

(Last image does show a GET request being redirected and POST being not, the code above does not show GET request code because I’ve modified the code since I’ve found another bug [will be posted to another topic soon])

Browser/OS/Device: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Replit Profile: https://replit.com/@pG6am-loBVarGG0amlnbx