Permalink
Browse files

[project @ Remove range headers from requests]

  • Loading branch information...
1 parent f2852a4 commit 17dd731e32d9d10ad2c486bd3354c368aebb3f48 tailor committed Oct 31, 2008
Showing with 0 additions and 7 deletions.
  1. +0 −7 openid/fetchers.py
View
7 openid/fetchers.py
@@ -198,9 +198,6 @@ def fetch(self, url, body=None, headers=None):
headers.setdefault(
'User-Agent',
"%s Python-urllib/%s" % (USER_AGENT, urllib2.__version__,))
- headers.setdefault(
- 'Range',
- '0-%s' % (1024*MAX_RESPONSE_KB,))
req = urllib2.Request(url, data=body, headers=headers)
try:
@@ -324,7 +321,6 @@ def write_data(chunk):
c.setopt(pycurl.HEADERFUNCTION, response_header_data.write)
c.setopt(pycurl.TIMEOUT, off)
c.setopt(pycurl.URL, openid.urinorm.urinorm(url))
- c.setopt(pycurl.RANGE, '0-%s'%(MAX_RESPONSE_KB*1024))
c.perform()
@@ -394,9 +390,6 @@ def fetch(self, url, body=None, headers=None):
if headers is None:
headers = {}
- headers.setdefault(
- 'Range',
- '0-%s' % (1024*MAX_RESPONSE_KB,))
# httplib2 doesn't check to make sure that the URL's scheme is
# 'http' so we do it here.

0 comments on commit 17dd731

Please sign in to comment.