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:
@ -22,13 +22,15 @@ import (
|
||||
)
|
||||
|
||||
var httpProtocolMap = map[string]HTTPProtocol{
|
||||
sender.HTTPProto1: HTTPProtocolHTTP1,
|
||||
sender.HTTPProto2: HTTPProtocolHTTP2,
|
||||
sender.HTTPProto10: HTTPProtocolHTTP10,
|
||||
sender.HTTPProto11: HTTPProtocolHTTP11,
|
||||
sender.HTTPProto20: HTTPProtocolHTTP20,
|
||||
}
|
||||
|
||||
var revHTTPProtocolMap = map[HTTPProtocol]string{
|
||||
HTTPProtocolHTTP1: sender.HTTPProto1,
|
||||
HTTPProtocolHTTP2: sender.HTTPProto2,
|
||||
HTTPProtocolHTTP10: sender.HTTPProto10,
|
||||
HTTPProtocolHTTP11: sender.HTTPProto11,
|
||||
HTTPProtocolHTTP20: sender.HTTPProto20,
|
||||
}
|
||||
|
||||
type Resolver struct {
|
||||
|
Reference in New Issue
Block a user