aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcoderwander <[email protected]>2024-04-16 12:10:11 +0800
committerGitHub <[email protected]>2024-04-16 04:10:11 +0000
commiteafc875ea9f6238fce24b23af47a1d7162fd27a5 (patch)
tree9c891ed1c61b6a25f501808597f5f6fb42c0429d
parent03e0a010d1bfad6b15d9d0abba9430e77dc43e1c (diff)
downloadcaddy-eafc875ea9f6238fce24b23af47a1d7162fd27a5.tar.gz
caddy-eafc875ea9f6238fce24b23af47a1d7162fd27a5.zip
chore: fix some typos in comments (#6243)
-rw-r--r--admin.go2
-rw-r--r--caddytest/integration/stream_test.go2
-rw-r--r--modules/caddyhttp/app.go2
-rw-r--r--modules/caddyhttp/fileserver/staticfiles.go2
4 files changed, 4 insertions, 4 deletions
diff --git a/admin.go b/admin.go
index 3950a92fa..ef78254ee 100644
--- a/admin.go
+++ b/admin.go
@@ -47,7 +47,7 @@ import (
)
func init() {
- // The hard-coded default `DefaultAdminListen` can be overidden
+ // The hard-coded default `DefaultAdminListen` can be overridden
// by setting the `CADDY_ADMIN` environment variable.
// The environment variable may be used by packagers to change
// the default admin address to something more appropriate for
diff --git a/caddytest/integration/stream_test.go b/caddytest/integration/stream_test.go
index ef3ea498d..d2f2fd79b 100644
--- a/caddytest/integration/stream_test.go
+++ b/caddytest/integration/stream_test.go
@@ -334,7 +334,7 @@ func TestH2ToH1ChunkedResponse(t *testing.T) {
ProtoMinor: 0,
Header: make(http.Header),
}
- // underlying transport will automaticlly add gzip
+ // underlying transport will automatically add gzip
// req.Header.Set("Accept-Encoding", "gzip")
go func() {
fmt.Fprint(w, expectedBody)
diff --git a/modules/caddyhttp/app.go b/modules/caddyhttp/app.go
index f46c891f3..2d2c12cb7 100644
--- a/modules/caddyhttp/app.go
+++ b/modules/caddyhttp/app.go
@@ -526,7 +526,7 @@ func (app *App) Stop() error {
ctx := context.Background()
// see if any listeners in our config will be closing or if they are continuing
- // hrough a reload; because if any are closing, we will enforce shutdown delay
+ // through a reload; because if any are closing, we will enforce shutdown delay
var delay bool
scheduledTime := time.Now().Add(time.Duration(app.ShutdownDelay))
if app.ShutdownDelay > 0 {
diff --git a/modules/caddyhttp/fileserver/staticfiles.go b/modules/caddyhttp/fileserver/staticfiles.go
index 15ae35e38..8fba82a8e 100644
--- a/modules/caddyhttp/fileserver/staticfiles.go
+++ b/modules/caddyhttp/fileserver/staticfiles.go
@@ -60,7 +60,7 @@ func init() {
// 404 response. Alternatively, file browsing can be enabled with
// the "browse" parameter which shows a list of files when directories
// are requested if no index file is present. If "browse" is enabled,
-// Caddy may serve a JSON array of the dirctory listing when the `Accept`
+// Caddy may serve a JSON array of the directory listing when the `Accept`
// header mentions `application/json` with the following structure:
//
// [{