aboutsummaryrefslogtreecommitdiff
path: root/server_test.go
diff options
context:
space:
mode:
authorGravatar Oleksandr Redko <oleksandr.red+github@gmail.com> 2023-02-10 15:34:49 +0200
committerGravatar GitHub <noreply@github.com> 2023-02-10 21:34:49 +0800
commitf84e2346ba6209d0527234bd38d736d2bf5052c0 (patch)
tree089fe472a2980d3e7274f581c0c29979a2c3c8de /server_test.go
parentAdd missing fasthttp prefix in example usage (#1487) (diff)
downloadfasthttp-f84e2346ba6209d0527234bd38d736d2bf5052c0.tar.gz
fasthttp-f84e2346ba6209d0527234bd38d736d2bf5052c0.tar.bz2
fasthttp-f84e2346ba6209d0527234bd38d736d2bf5052c0.zip
Rename unexported funcs, vars to match common Go (#1488)
See https://github.com/golang/go/wiki/CodeReviewComments#initialisms and https://go.dev/doc/effective_go#mixed-caps
Diffstat (limited to 'server_test.go')
-rw-r--r--server_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/server_test.go b/server_test.go
index a1667dc..e639e48 100644
--- a/server_test.go
+++ b/server_test.go
@@ -1171,7 +1171,7 @@ func TestServerServeTLSEmbed(t *testing.T) {
ctx.Error("expecting tls", StatusBadRequest)
return
}
- if !ctx.URI().isHttps() {
+ if !ctx.URI().isHTTPS() {
ctx.Error(fmt.Sprintf("unexpected scheme=%q. Expecting %q", ctx.URI().Scheme(), "https"), StatusBadRequest)
return
}