Skip to content

Commit

Permalink
try to debug requests
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcYin committed Sep 24, 2018
1 parent c489cdb commit 1b54fab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
*.pkl
!*/sen2cloud_detector.pkl
*S2?_MSIL1C*.SAFE
.coverage*
2 changes: 1 addition & 1 deletion SIAC/get_MCD43.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def downloader(url_fname):
with requests.Session() as s:
s.auth = auth
r1 = s.get(url)
r = s.get(r1.url, stream=True)
r = s.get(r1.url, stream=True, headers={'user-agent': 'My app'})
if r.ok:
remote_size = int(r.headers['Content-Length'])
if os.path.exists(fname):
Expand Down

0 comments on commit 1b54fab

Please sign in to comment.