Skip to content

Commit a245f7e

Browse files
authored
docs: Change headers.insert to headers.append for Accept
1 parent 36061bf commit a245f7e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/source/guide/basic.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ headers = HeaderMap()
136136
headers.insert("Content-Type", "application/json")
137137

138138
# A header can hold multiple values
139-
headers.insert("Accept", "application/json")
140-
headers.insert("Accept", "text/html")
139+
headers.append("Accept", "application/json")
140+
headers.append("Accept", "text/html")
141141

142142
# Retrieve a single value
143143
print(headers.get("Content-Type"))

0 commit comments

Comments
 (0)