-
-
Notifications
You must be signed in to change notification settings - Fork 882
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
KeyError occurs when redirect to custom scheme(ex. market://) #822
Comments
Hi @holyachon, I believe this was fixed in a recent release — can’t dig up the issue right now but I remember we now use defaults for the port instead of direct key access. Can you upgrade to the latest version and confirm this is now resolved? |
hi @florimondmanca , thank you for your quick reply :) i made a redirect response which goes to "market://test", and error trace is below.
|
Okay, so this ought to error by default since "market" isn't a valid HTTP scheme, but it could do so more gracefully, and we ought to allow it to be supported by explicitly mounting a dispatcher class for For example |
Information
OS platform : mac OS
Python version : 3.7.2
Installed dependencies and versions :
httpx==0.9.3
Code snippet
Error traceback
Description
i'm using sanic and sanic uses httpx to test web request.
when i make a redirect response which goes to "market://details?id=~~" (android market url)", KeyError occurred.
I think it is associated with
port
property method.Is this the intended behavior?
Thank you.
The text was updated successfully, but these errors were encountered: