Skip to content
Myr

edited the useragent string

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by M.Yasoob Ullah Khalid ☺ · committed by M.Yasoob Ullah Khalid ☺ · parent 6e2f1eb · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/user/quickstart.rst+1 added-1 removed
184 unmodified lines
185For example, we didn't specify our content-type in the previous example::186187 >>> import json188 >>> url = 'https://api.github.com/some/endpoint'189 >>> headers = {'user-agent': 'Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36'}189 >>> headers = {'user-agent': 'my-app/0.0.1'}190191 >>> r = requests.get(url, headers=headers)192193
270 unmodified lines