mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-23 21:18:09 +02:00
config: default to http2
This commit is contained in:
parent
245d1b0de4
commit
671e3f3d84
2 changed files with 0 additions and 8 deletions
|
@ -8,10 +8,5 @@ import (
|
|||
|
||||
func TestOptions_GetCodecType(t *testing.T) {
|
||||
options := NewDefaultOptions()
|
||||
assert.Equal(t, CodecTypeHTTP1, options.GetCodecType())
|
||||
options.Services = "proxy"
|
||||
assert.Equal(t, CodecTypeAuto, options.GetCodecType())
|
||||
options.Services = "all"
|
||||
options.CodecType = CodecTypeAuto
|
||||
assert.Equal(t, CodecTypeAuto, options.GetCodecType())
|
||||
}
|
||||
|
|
|
@ -1049,9 +1049,6 @@ func (o *Options) GetQPS() float64 {
|
|||
// GetCodecType gets a codec type.
|
||||
func (o *Options) GetCodecType() CodecType {
|
||||
if o.CodecType == CodecTypeUnset {
|
||||
if IsAll(o.Services) {
|
||||
return CodecTypeHTTP1
|
||||
}
|
||||
return CodecTypeAuto
|
||||
}
|
||||
return o.CodecType
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue