Skip to content

Commit d864f52

Browse files
author
Jose Pino
authored
Merge pull request jofpin#201 from harshitm98/master
Fixed http.client not found issue
2 parents 85560b9 + 8208c3f commit d864f52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import time
2121
import requests, json
2222
from colorama import init , Style,Fore
23-
import http.client
23+
import httplib
2424
init()
2525

2626
class utils:
@@ -136,7 +136,7 @@ def checkPort(port):
136136

137137
@staticmethod
138138
def checkUrl(url):
139-
c = http.client.HTTPConnection(url, timeout=5)
139+
c = httplib.HTTPConnection(url, timeout=5)
140140
try:
141141
c.request("HEAD", "/")
142142
c.close()

0 commit comments

Comments
 (0)