@@ -234,7 +234,7 @@ Note: All header values must be a ``string``, bytestring, or unicode. While perm
234234More 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.
238238To do this, simply pass a dictionary to the ``data `` argument. Your
239239dictionary 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
294294If you need that header set and you don't want to encode the ``dict `` yourself,
295295you 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