Skip to content
This repository has been archived by the owner on Jan 13, 2021. It is now read-only.

Commit

Permalink
Correct requests example.
Browse files Browse the repository at this point in the history
  • Loading branch information
hwms committed Feb 23, 2020
1 parent 47c520b commit b359887
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ Using ``hyper`` with requests is super simple::
>>> import requests
>>> from hyper.contrib import HTTP20Adapter
>>> s = requests.Session()
>>> s.mount('https://http2bin.org', HTTP20Adapter())
>>> r = s.get('https://http2bin.org/get')
>>> s.mount('https://', HTTP20Adapter())
>>> r = s.get('https://httpbin.org/get')
>>> print(r.status_code)
200

Expand Down

0 comments on commit b359887

Please sign in to comment.