Skip to main content

Enforce HTTPS Connection for `urllib3`


ImportanceReview GuidanceRequires Scanning Tool
HighMerge Without ReviewNo

This codemod replaces calls to urllib3.connectionpool.HTTPConnectionPool and urllib3.HTTPConnectionPool with their secure variant (HTTPSConnectionPool).

Programmers should opt to use HTTPS over HTTP for secure encrypted communication whenever possible.

import urllib3
- urllib3.HTTPConnectionPool("","80")
+ urllib3.HTTPSConnectionPool("","80")

If you have feedback on this codemod, please let us know!


Why is this codemod marked as Merge Without Review?

Support for HTTPS is widespread which, save in some legacy applications, makes this change safe.

Codemod Settings