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

Commit e509c7a

Browse files
committed
Enable override default headers from CLI
1 parent 095c50e commit e509c7a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hyper/cli.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,9 @@ def set_request_data(args):
167167
if i.key:
168168
headers[i.key] = i.value
169169
else:
170-
# when overriding a HTTP/2 special header there will be a leading
171-
# colon, which tricks the command line parser into thinking
172-
# the header is empty
170+
# when overriding a HTTP/2 special header there will be a leading
171+
# colon, which tricks the command line parser into thinking
172+
# the header is empty
173173
k, v = i.value.split(':', 1)
174174
headers[':' + k] = v
175175
elif i.sep == SEP_QUERY:

0 commit comments

Comments
 (0)