mirror of https://github.com/aria2/aria2
parent
f4cbc7bb31
commit
562ec30587
|
@ -43,6 +43,7 @@
|
||||||
#include "DlAbortEx.h"
|
#include "DlAbortEx.h"
|
||||||
#include "A2STR.h"
|
#include "A2STR.h"
|
||||||
#include "error_code.h"
|
#include "error_code.h"
|
||||||
|
#include "LogFactory.h"
|
||||||
|
|
||||||
namespace aria2 {
|
namespace aria2 {
|
||||||
|
|
||||||
|
@ -362,7 +363,8 @@ bool HttpHeaderProcessor::parse(const unsigned char* data, size_t length)
|
||||||
|
|
||||||
case FIELD_NAME:
|
case FIELD_NAME:
|
||||||
if (util::isLws(c) || util::isCRLF(c)) {
|
if (util::isLws(c) || util::isCRLF(c)) {
|
||||||
throw DL_ABORT_EX("Bad HTTP header: missing ':'");
|
A2_LOG_WARN("Bad HTTP header: missing ':'");
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (c == ':') {
|
if (c == ':') {
|
||||||
|
|
Loading…
Reference in New Issue