Skip to content

Commit 0518249

Browse files
authored
Merge pull request from GHSA-jjq6-mh2h-g39h
1 parent 2bde9c7 commit 0518249

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/http/RegisteredHeaders.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ HeaderTableRecord::HeaderTableRecord(const char *n, HdrType theId, HdrFieldType
3737
const HeaderTableRecord&
3838
HeaderLookupTable_t::lookup (const char *buf, const std::size_t len) const {
3939
const HeaderTableRecord *r = HttpHeaderHashTable::lookup(buf, len);
40-
if (!r)
40+
if (!r || r->id == Http::HdrType::OTHER)
4141
return BadHdr;
4242
return *r;
4343
}

0 commit comments

Comments
 (0)