A couple bug fixes (#2458)

* fix valid status code range

* update path

* highwatermark option

* throw DOMException

* remove extra transpiler output

* more transpiler tests

* comment

* get index not quickly

* replace with `getDirectIndex`

* update abort test

* throw out of range status code

* promisify test fix

* move stdio test instance files

* working crypto tests

* allow duplicate set-cookie headers

* different formatting

* revert, fix will be in different pr

* it is called

* use min buffer size

* fix url tests

* null origin for other protocols

* remove overload

* add very large file test

* await

* coerce to int64

* 64

* no cast

* add todo blob url tests

* use `tryConvertToInt52`
This commit is contained in:
Dylan Conway
2023-03-22 18:09:51 -07:00
committed by GitHub
parent a5f92224b5
commit 31c2fea74a
25 changed files with 390 additions and 139 deletions

View File

@@ -284,18 +284,7 @@ bool HTTPHeaderMap::remove(HTTPHeaderName name)
void HTTPHeaderMap::add(HTTPHeaderName name, const String& value)
{
if (name == HTTPHeaderName::SetCookie) {
auto cookieName = extractCookieName(value);
size_t length = m_setCookieHeaders.size();
const auto& cookies = m_setCookieHeaders.data();
for (size_t i = 0; i < length; ++i) {
if (extractCookieName(cookies[i]) == cookieName) {
m_setCookieHeaders[i] = value;
return;
}
}
m_setCookieHeaders.append(value);
return;
}