diff --git a/docs/quickstart.md b/docs/quickstart.md index 38da2fec36..e140b53cd7 100644 --- a/docs/quickstart.md +++ b/docs/quickstart.md @@ -191,7 +191,7 @@ You can also explicitly set the filename and content type, by using a tuple of items for the file value: ```pycon ->>> with open('report.xls', 'rb') report_file: +>>> with open('report.xls', 'rb') as report_file: ... files = {'upload-file': ('report.xls', report_file, 'application/vnd.ms-excel')} ... r = httpx.post("https://httpbin.org/post", files=files) >>> print(r.text)