mirror of
https://github.com/dstotijn/hetty.git
synced 2025-07-01 18:47:29 -04:00
Fix missing HTTP/1.0
proto enums
This commit is contained in:
@ -12,9 +12,11 @@ type ResponseStatusProps = {
|
||||
|
||||
function mapProto(proto: HttpProtocol): string {
|
||||
switch (proto) {
|
||||
case HttpProtocol.Http1:
|
||||
case HttpProtocol.Http10:
|
||||
return "HTTP/1.0";
|
||||
case HttpProtocol.Http11:
|
||||
return "HTTP/1.1";
|
||||
case HttpProtocol.Http2:
|
||||
case HttpProtocol.Http20:
|
||||
return "HTTP/2.0";
|
||||
default:
|
||||
return proto;
|
||||
|
Reference in New Issue
Block a user