diff options
author | Tianyi Song <42670338+tysg@users.noreply.github.com> | 2021-08-05 02:15:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-04 20:15:05 +0200 |
commit | d31e6dbdbae638be79789b2aaa78800ac3c4d3eb (patch) | |
tree | dafaf548f00b937a094fddd4408e4f5a47a598e1 /server_test.go | |
parent | fix typo: occured -> occurred (#1061) (diff) | |
download | fasthttp-d31e6dbdbae638be79789b2aaa78800ac3c4d3eb.tar.gz fasthttp-d31e6dbdbae638be79789b2aaa78800ac3c4d3eb.tar.bz2 fasthttp-d31e6dbdbae638be79789b2aaa78800ac3c4d3eb.zip |
Handle perIPConn in RequestCtx.IsTLS() specially (#1064)
Diffstat (limited to 'server_test.go')
-rw-r--r-- | server_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server_test.go b/server_test.go index 590502e..b0826f7 100644 --- a/server_test.go +++ b/server_test.go @@ -529,6 +529,11 @@ func TestRequestCtxIsTLS(t *testing.T) { if !ctx.IsTLS() { t.Fatal("IsTLS must return true") } + + ctx.c = &perIPConn{Conn: &tls.Conn{}} + if !ctx.IsTLS() { + t.Fatal("IsTLS must return true") + } } func TestRequestCtxRedirectHTTPSSchemeless(t *testing.T) { |