mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-06 10:21:05 +02:00
set default codec type to auto/http1 (#2839)
This commit is contained in:
parent
70e0e866fc
commit
6b592afd3e
3 changed files with 9 additions and 0 deletions
|
@ -134,6 +134,7 @@ func Test_buildMainHTTPConnectionManagerFilter(t *testing.T) {
|
|||
}
|
||||
}
|
||||
}],
|
||||
"codecType": "HTTP1",
|
||||
"commonHttpProtocolOptions": {
|
||||
"idleTimeout": "300s"
|
||||
},
|
||||
|
|
|
@ -312,6 +312,7 @@ var defaultOptions = Options{
|
|||
Services: "all",
|
||||
CookieHTTPOnly: true,
|
||||
CookieSecure: true,
|
||||
CodecType: CodecTypeAuto,
|
||||
CookieExpire: 14 * time.Hour,
|
||||
CookieName: "_pomerium",
|
||||
DefaultUpstreamTimeout: 30 * time.Second,
|
||||
|
|
|
@ -313,6 +313,7 @@ func TestOptionsFromViper(t *testing.T) {
|
|||
EnvoyAdminAccessLogPath: os.DevNull,
|
||||
EnvoyAdminProfilePath: os.DevNull,
|
||||
EnvoyAdminAddress: "127.0.0.1:9901",
|
||||
CodecType: CodecTypeAuto,
|
||||
},
|
||||
false,
|
||||
},
|
||||
|
@ -334,6 +335,7 @@ func TestOptionsFromViper(t *testing.T) {
|
|||
EnvoyAdminAccessLogPath: os.DevNull,
|
||||
EnvoyAdminProfilePath: os.DevNull,
|
||||
EnvoyAdminAddress: "127.0.0.1:9901",
|
||||
CodecType: CodecTypeAuto,
|
||||
},
|
||||
false,
|
||||
},
|
||||
|
@ -691,3 +693,8 @@ func mustParseWeightedURLs(t *testing.T, urls ...string) []WeightedURL {
|
|||
require.NoError(t, err)
|
||||
return wu
|
||||
}
|
||||
|
||||
func TestDefaults(t *testing.T) {
|
||||
o := NewDefaultOptions()
|
||||
assert.Equal(t, CodecTypeAuto, o.CodecType)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue