Properly parse request headers, use trim for leading whitespace

This commit is contained in:
2019-01-26 08:09:48 -05:00
parent b89cb298d3
commit cb120763e1
2 changed files with 23 additions and 7 deletions
+9
View File
@@ -0,0 +1,9 @@
import requests
# TODO - Make this configurable based on config file test section.
http_proxy = "http://127.0.0.1:8124"
def test_proxy_basic():
resp = requests.get("http://google.com", proxies={"http": http_proxy})