vinissimus / async-asgi-testclient

A framework-agnostic library for testing ASGI web applications
MIT License
160 stars 20 forks source link

client can't handle redirect of absolute paths #52

Closed bentheiii closed 2 years ago

bentheiii commented 2 years ago

when starlette returns a redirect response (such as when attempting to fix trailing slashes), it returns an absolute path, but async-asgi-testclient always interprets it as a relative path. I propose that whenever the testclient recieves a redirect, it strip the hostname off the location, if any are found.

bentheiii commented 2 years ago

closed by #53