mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Update srs_protocol_http_stack.cpp
This commit is contained in:
parent
8b5741882b
commit
f6238c2fc3
1 changed files with 8 additions and 2 deletions
|
@ -2861,8 +2861,14 @@ reexecute:
|
||||||
ch = *p;
|
ch = *p;
|
||||||
c = TOKEN(ch);
|
c = TOKEN(ch);
|
||||||
|
|
||||||
if (!c)
|
if (!c) {
|
||||||
break;
|
// Add this fix to explicitly reject space in header field names
|
||||||
|
if (ch == ' ') {
|
||||||
|
SET_ERRNO(HPE_INVALID_HEADER_TOKEN);
|
||||||
|
goto error;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
switch (parser->header_state) {
|
switch (parser->header_state) {
|
||||||
case h_general: {
|
case h_general: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue