Skip to content

Commit

Permalink
[#1819] Upgrade Requests to 2.3.x
Browse files Browse the repository at this point in the history
Only a minor change in the resource proxy extension (look like the
content-length header is no longer added by default).
  • Loading branch information
amercader committed Jul 1, 2014
1 parent bf07d13 commit bc41fee
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ckanext/resourceproxy/controller.py
Expand Up @@ -41,7 +41,7 @@ def proxy_resource(context, data_dict):
did_get = True
r.raise_for_status()

cl = r.headers['content-length']
cl = r.headers.get('content-length')
if cl and int(cl) > MAX_FILE_SIZE:
base.abort(409, '''Content is too large to be proxied. Allowed
file size: {allowed}, Content-Length: {actual}.'''.format(
Expand Down
2 changes: 1 addition & 1 deletion requirements.in
Expand Up @@ -19,7 +19,7 @@ pyutilib.component.core==4.5.3
repoze.who-friendlyform==1.0.8
repoze.who.plugins.openid==0.5.3
repoze.who==1.0.19
requests==1.1.0
requests==2.3.0
Routes==1.13
solrpy==0.9.5
sqlalchemy-migrate==0.7.2
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Expand Up @@ -33,7 +33,7 @@ repoze.lru==0.6
repoze.who==1.0.19
repoze.who-friendlyform==1.0.8
repoze.who.plugins.openid==0.5.3
requests==1.1.0
requests==2.3.0
simplejson==3.3.1
solrpy==0.9.5
sqlalchemy-migrate==0.7.2
Expand Down

0 comments on commit bc41fee

Please sign in to comment.