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
Describe the bug
For url using http protocol, python.http-client still generates conn = http.client.HTTPSConnection. Python would throw SSL error when running the script.
To Reproduce
Steps to reproduce the behavior:
Open postman, put http://localhost:3000 into the url input box.
Generate code with python - http.client.
Put snippet into test.py and run python3 test,py, you will see the SSL error.
Expected code snippet and corresponding request
Change http.client.HTTPSConnection to http.client.HTTPConnection would resolve the issue. Complete code:
Describe the bug
For url using
http
protocol, python.http-client still generatesconn = http.client.HTTPSConnection
. Python would throw SSL error when running the script.To Reproduce
Steps to reproduce the behavior:
http://localhost:3000
into the url input box.test.py
and runpython3 test,py
, you will see the SSL error.Expected code snippet and corresponding request
Change
http.client.HTTPSConnection
tohttp.client.HTTPConnection
would resolve the issue. Complete code:Screenshots
Current postman screenshot:
Additional context
N/A
The text was updated successfully, but these errors were encountered: