Skip to content

Commit def4778

Browse files
authored
Fixed a syntax error in the file upload example (#3692)
1 parent 435e1da commit def4778

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ You can also explicitly set the filename and content type, by using a tuple
191191
of items for the file value:
192192

193193
```pycon
194-
>>> with open('report.xls', 'rb') report_file:
194+
>>> with open('report.xls', 'rb') as report_file:
195195
... files = {'upload-file': ('report.xls', report_file, 'application/vnd.ms-excel')}
196196
... r = httpx.post("https://httpbin.org/post", files=files)
197197
>>> print(r.text)

0 commit comments

Comments
 (0)