mirror of
https://github.com/notherealmarco/vue-quic-test.git
synced 2025-05-05 04:28:39 +02:00
Fix last request only was checked for HTTP/3
This commit is contained in:
parent
219dec465e
commit
cf901eea0c
1 changed files with 2 additions and 1 deletions
|
@ -30,13 +30,14 @@ onMounted(() => {
|
||||||
|
|
||||||
if (entry.transferSize > 0) count.value++
|
if (entry.transferSize > 0) count.value++
|
||||||
|
|
||||||
if (entry.nextHopProtocol !== "") proto = entry.nextHopProtocol
|
if (proto != "h3" && entry.nextHopProtocol !== "") proto = entry.nextHopProtocol
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(count.value + " requests sent, " + h3_count.value + " used QUIC")
|
console.log(count.value + " requests sent, " + h3_count.value + " used QUIC")
|
||||||
|
|
||||||
|
// Set protocol names
|
||||||
if (proto === "h3") proto = "HTTP/3"
|
if (proto === "h3") proto = "HTTP/3"
|
||||||
else if (proto === "h2") proto = "HTTP/2"
|
else if (proto === "h2") proto = "HTTP/2"
|
||||||
else if (proto === "h2c") proto = "HTTP/2"
|
else if (proto === "h2c") proto = "HTTP/2"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue