pull/1712/merge
Klaus Frank 2024-07-05 08:12:55 +02:00 committed by GitHub
commit c538bce056
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -43,6 +43,7 @@
#include "DlAbortEx.h"
#include "A2STR.h"
#include "error_code.h"
#include "LogFactory.h"
namespace aria2 {
@ -362,7 +363,8 @@ bool HttpHeaderProcessor::parse(const unsigned char* data, size_t length)
case FIELD_NAME:
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 == ':') {