mirror of https://github.com/caddyserver/caddy.git
chore: fix some typos in comments (#6243)
This commit is contained in:
parent
03e0a010d1
commit
eafc875ea9
2
admin.go
2
admin.go
|
@ -47,7 +47,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
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.
|
// by setting the `CADDY_ADMIN` environment variable.
|
||||||
// The environment variable may be used by packagers to change
|
// The environment variable may be used by packagers to change
|
||||||
// the default admin address to something more appropriate for
|
// the default admin address to something more appropriate for
|
||||||
|
|
|
@ -334,7 +334,7 @@ func TestH2ToH1ChunkedResponse(t *testing.T) {
|
||||||
ProtoMinor: 0,
|
ProtoMinor: 0,
|
||||||
Header: make(http.Header),
|
Header: make(http.Header),
|
||||||
}
|
}
|
||||||
// underlying transport will automaticlly add gzip
|
// underlying transport will automatically add gzip
|
||||||
// req.Header.Set("Accept-Encoding", "gzip")
|
// req.Header.Set("Accept-Encoding", "gzip")
|
||||||
go func() {
|
go func() {
|
||||||
fmt.Fprint(w, expectedBody)
|
fmt.Fprint(w, expectedBody)
|
||||||
|
|
|
@ -526,7 +526,7 @@ func (app *App) Stop() error {
|
||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
|
|
||||||
// see if any listeners in our config will be closing or if they are continuing
|
// 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
|
var delay bool
|
||||||
scheduledTime := time.Now().Add(time.Duration(app.ShutdownDelay))
|
scheduledTime := time.Now().Add(time.Duration(app.ShutdownDelay))
|
||||||
if app.ShutdownDelay > 0 {
|
if app.ShutdownDelay > 0 {
|
||||||
|
|
|
@ -60,7 +60,7 @@ func init() {
|
||||||
// 404 response. Alternatively, file browsing can be enabled with
|
// 404 response. Alternatively, file browsing can be enabled with
|
||||||
// the "browse" parameter which shows a list of files when directories
|
// the "browse" parameter which shows a list of files when directories
|
||||||
// are requested if no index file is present. If "browse" is enabled,
|
// 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:
|
// header mentions `application/json` with the following structure:
|
||||||
//
|
//
|
||||||
// [{
|
// [{
|
||||||
|
|
Loading…
Reference in New Issue