Make TRUST_ENDPOINTS_FOR_REQUESTS
take hostnames instead of URLs
#9990
Labels
TRUST_ENDPOINTS_FOR_REQUESTS
take hostnames instead of URLs
#9990
If you put e.g.
192.168.1.42
intoTRUST_ENDPOINTS_FOR_REQUESTS
, it doesn't work becauseurlparse
can't parse URLs without a schema. So instead of converting from URL to hostname inRequests.__init__
, we should just makeTRUST_ENDPOINTS_FOR_REQUESTS
a list of hostnames rather than URLs, and also probably rename it toTRUSTED_HOSTS_FOR_REQUESTS
.The text was updated successfully, but these errors were encountered: