Skip to content
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

fix python.http-client generate code snippet using http #747

Conversation

yizhao1998
Copy link
Contributor

@yizhao1998 yizhao1998 commented May 25, 2024

Problem

Associated Issue
For url using http protocol, python.http-client still generates conn = http.client.HTTPSConnection. Python would throw SSL error when running the script.

Fix

Generate the code snippet based on the received url protocol.

Test

Added unit test case.

@VShingala VShingala merged commit eb63ffa into postmanlabs:develop Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants