More listen overloads

This commit is contained in:
Alex Hultman
2022-05-15 18:58:31 +02:00
parent 73c9262f34
commit c2f29c86c7
2 changed files with 31 additions and 2 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ namespace uWS {
int name_length, value_length;
if (more = us_quic_socket_context_get_header(nullptr, i, &name, &name_length, &value, &value_length)) {
if (name_length == key.length() && !memcmp(name, key.data(), key.length())) {
return {value, value_length};
return {value, (size_t) value_length};
}
}
}