Skip to content
Myr

Merge pull request #4384 from taleinat/quickstart_doc_http_to_html

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

Correct HTTP -> HTML in quickstart doc

authored by Ian Stapleton Cordasco · committed by GitHub · parents d55de2d, 7f08ad3 · 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
108 unmodified lines
109110If you change the encoding, Requests will use the new value of ``r.encoding``111whenever you call ``r.text``. You might want to do this in any situation where112you can apply special logic to work out what the encoding of the content will113be. For example, HTTP and XML have the ability to specify their encoding in113be. For example, HTML and XML have the ability to specify their encoding in114their body. In situations like this, you should use ``r.content`` to find the115encoding, and then set ``r.encoding``. This will let you use ``r.text`` with116the correct encoding.117
430 unmodified lines