Remove not used Http class
This commit is contained in:
parent
aa9161a83a
commit
35192531a6
1 changed files with 0 additions and 12 deletions
|
@ -1,12 +0,0 @@
|
||||||
import urllib2
|
|
||||||
import logging
|
|
||||||
|
|
||||||
from Config import config
|
|
||||||
|
|
||||||
|
|
||||||
def get(url, accept="application/json"):
|
|
||||||
logging.debug("Get %s" % url)
|
|
||||||
req = urllib2.Request(url)
|
|
||||||
req.add_header('User-Agent', "ZeroNet %s (https://github.com/HelloZeroNet/ZeroNet)" % config.version)
|
|
||||||
req.add_header('Accept', accept)
|
|
||||||
return urllib2.urlopen(req)
|
|
Loading…
Reference in a new issue