File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ cdef class HttpParser:
95
95
self ._last_error = None
96
96
97
97
cdef _maybe_call_on_header(self ):
98
- if self ._current_header_name is not None :
98
+ if self ._current_header_value is not None :
99
99
current_header_name = self ._current_header_name
100
100
current_header_value = self ._current_header_value
101
101
@@ -107,7 +107,10 @@ cdef class HttpParser:
107
107
108
108
cdef _on_header_field(self , bytes field):
109
109
self ._maybe_call_on_header()
110
- self ._current_header_name = field
110
+ if self ._current_header_name is None :
111
+ self ._current_header_name = field
112
+ else :
113
+ self ._current_header_name += field
111
114
112
115
cdef _on_header_value(self , bytes val):
113
116
if self ._current_header_value is None :
You can’t perform that action at this time.
0 commit comments