Skip to content
Myr

Fix quickstart "Custom Headers" example intro

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

Previously this section prefaced an example with: For example, we didn't specify our content-type But, the actual example set a custom user-agent header on the request. This changes it to say "user-agent" instead which matches the given example.

authored by Peter Marsh · committed by Peter Marsh · parent 2b26489 · 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
180 unmodified lines
181182If you'd like to add HTTP headers to a request, simply pass in a ``dict`` to the183``headers`` parameter.184185For example, we didn't specify our content-type in the previous example::185For example, we didn't specify our user-agent in the previous example::186187 >>> import json188 >>> url = 'https://api.github.com/some/endpoint'189 >>> headers = {'user-agent': 'my-app/0.0.1'}
283 unmodified lines