mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-01-09 09:59:58 +01:00
little change
This commit is contained in:
parent
b3ee8d29ae
commit
5454e4980f
|
|
@ -57,8 +57,10 @@ def run(typ,freq,data):
|
|||
else:
|
||||
logging.warning("Invalid Typ: %s", typ)
|
||||
|
||||
httprequest = httplib.HTTPConnection(url)
|
||||
httprequest.request("HEAD", url)
|
||||
url_path = urlparse(url)#get the URL path
|
||||
|
||||
httprequest = httplib.HTTPConnection(url_path[2])
|
||||
httprequest.request("GET", url)
|
||||
|
||||
except:
|
||||
logging.exception("cannot send HTTP request")
|
||||
|
|
|
|||
Loading…
Reference in a new issue