You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a library that needs to pull the same path from 2 different hosts. I couldn't get this to work, and that's because urllib3-mock ignores the host property of the url. It should be able to add a host property to the set of urls and, if that property is not None, check it.
It's not great that the terminology used here is "URL" but what is meant is "that part of the URL that follows the host spec."
Maybe add a check to the url and raise an error if the user provides a value with a : in it, where presence of the colon is diagnostic of a full URL, instead of just a path.
The text was updated successfully, but these errors were encountered:
I have a library that needs to pull the same path from 2 different hosts. I couldn't get this to work, and that's because urllib3-mock ignores the
host
property of the url. It should be able to add ahost
property to the set of urls and, if that property is notNone
, check it.It's not great that the terminology used here is "URL" but what is meant is "that part of the URL that follows the host spec."
Maybe add a check to the url and raise an error if the user provides a value with a
:
in it, where presence of the colon is diagnostic of a full URL, instead of just a path.The text was updated successfully, but these errors were encountered: