Skip to content

Commit 9c50ac6

Browse files
committed
Cleanup changes
1 parent c031c65 commit 9c50ac6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/user/quickstart.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ Note: All header values must be a ``string``, bytestring, or unicode. While perm
234234
More complicated POST requests
235235
------------------------------
236236

237-
Typically, you want to send some form-encoded data - much like an HTML form.
237+
Typically, you want to send some form-encoded data much like an HTML form.
238238
To do this, simply pass a dictionary to the ``data`` argument. Your
239239
dictionary of data will automatically be form-encoded when the request is made::
240240

@@ -271,8 +271,8 @@ use the same key::
271271
},
272272
...
273273
}
274-
>>> # NOTE: httpbin.org injects an "X-Amzn-Trace-Id" header in its JSON response,
275-
>>> # so r1.text and r2.text may differ even though they carry identical form data.
274+
>>> # httpbin may embed non-deterministic metadata,
275+
>>> # so we only compare our submitted data here.
276276
>>> r1.json()['form'] == r2.json()['form']
277277
True
278278

@@ -293,7 +293,7 @@ Please note that the above code will NOT add the ``Content-Type`` header
293293

294294
If you need that header set and you don't want to encode the ``dict`` yourself,
295295
you can also pass it directly using the ``json`` parameter (added in version 2.4.2)
296-
and it will be encoded automatically::
296+
and it will be encoded automatically:
297297

298298
>>> url = 'https://api.github.com/some/endpoint'
299299
>>> payload = {'some': 'data'}

0 commit comments

Comments
 (0)