Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 12, 14:30 UTC
chore: fix some typos in comments (#6243)
coderwander committed
Apr 16, 2024 at 12:10 UTC
eafc875ea9f6238fce24b23af47a1d7162fd27a5
4 files changed
+4
-4
admin.go
+1
-1
@@ -47,7 +47,7 @@ import (
47
)
48
49
func init() {
50
- // The hard-coded default `DefaultAdminListen` can be overidden
50
+ // The hard-coded default `DefaultAdminListen` can be overridden
51
// by setting the `CADDY_ADMIN` environment variable.
52
// The environment variable may be used by packagers to change
53
// the default admin address to something more appropriate for
caddytest/integration/stream_test.go
+1
-1
@@ -334,7 +334,7 @@ func TestH2ToH1ChunkedResponse(t *testing.T) {
334
ProtoMinor: 0,
335
Header: make(http.Header),
336
}
337
- // underlying transport will automaticlly add gzip
337
+ // underlying transport will automatically add gzip
338
// req.Header.Set("Accept-Encoding", "gzip")
339
go func() {
340
fmt.Fprint(w, expectedBody)
modules/caddyhttp/app.go
+1
-1
@@ -526,7 +526,7 @@ func (app *App) Stop() error {
526
ctx := context.Background()
527
528
// see if any listeners in our config will be closing or if they are continuing
529
- // hrough a reload; because if any are closing, we will enforce shutdown delay
529
+ // through a reload; because if any are closing, we will enforce shutdown delay
530
var delay bool
531
scheduledTime := time.Now().Add(time.Duration(app.ShutdownDelay))
532
if app.ShutdownDelay > 0 {
modules/caddyhttp/fileserver/staticfiles.go
+1
-1
@@ -60,7 +60,7 @@ func init() {
60
// 404 response. Alternatively, file browsing can be enabled with
61
// the "browse" parameter which shows a list of files when directories
62
// are requested if no index file is present. If "browse" is enabled,
63
-// Caddy may serve a JSON array of the dirctory listing when the `Accept`
63
+// Caddy may serve a JSON array of the directory listing when the `Accept`
64
// header mentions `application/json` with the following structure:
65
//
66
// [{