projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fff2c7
)
default user agent!
author
Kenneth Reitz
<me@kennethreitz.com>
Sun, 24 Jul 2011 01:39:14 +0000
(21:39 -0400)
committer
Kenneth Reitz
<me@kennethreitz.com>
Sun, 24 Jul 2011 01:39:14 +0000
(21:39 -0400)
requests/config.py
patch
|
blob
|
history
diff --git
a/requests/config.py
b/requests/config.py
index
0878da9
..
c34a2b9
100644
(file)
--- a/
requests/config.py
+++ b/
requests/config.py
@@
-53,4
+53,5
@@
class Settings(object):
return None
return object.__getattribute__(self, key)
-settings = Settings()
\ No newline at end of file
+settings = Settings()
+settings.base_headers = {'User-Agent': 'python-requests.org'}
\ No newline at end of file