mirror of
https://github.com/caddyserver/caddy.git
synced 2025-06-04 11:14:42 +08:00
Fix typos (#6311)
* Fix typos * Revert * Revert to "htlm" * fix indentations
This commit is contained in:
@ -132,7 +132,7 @@ type browseTemplateContext struct {
|
||||
// The full path of the request.
|
||||
Path string `json:"path"`
|
||||
|
||||
// Whether the parent directory is browseable.
|
||||
// Whether the parent directory is browsable.
|
||||
CanGoUp bool `json:"can_go_up"`
|
||||
|
||||
// The items (files and folders) in the path.
|
||||
|
@ -184,7 +184,7 @@ type RespHeaderOps struct {
|
||||
Require *caddyhttp.ResponseMatcher `json:"require,omitempty"`
|
||||
|
||||
// If true, header operations will be deferred until
|
||||
// they are written out. Superceded if Require is set.
|
||||
// they are written out. Superseded if Require is set.
|
||||
// Usually you will need to set this to true if any
|
||||
// fields are being deleted.
|
||||
Deferred bool `json:"deferred,omitempty"`
|
||||
|
@ -274,7 +274,7 @@ func parseIPZoneFromString(address string) (netip.Addr, string, error) {
|
||||
ipStr = address // OK; probably didn't have a port
|
||||
}
|
||||
|
||||
// Some IPv6-Adresses can contain zone identifiers at the end,
|
||||
// Some IPv6-Addresses can contain zone identifiers at the end,
|
||||
// which are separated with "%"
|
||||
zoneID := ""
|
||||
if strings.Contains(ipStr, "%") {
|
||||
|
@ -161,7 +161,7 @@ func init() {
|
||||
// Renders the given Markdown text as HTML and returns it. This uses the
|
||||
// [Goldmark](https://github.com/yuin/goldmark) library,
|
||||
// which is CommonMark compliant. It also has these extensions
|
||||
// enabled: Github Flavored Markdown, Footnote, and syntax
|
||||
// enabled: GitHub Flavored Markdown, Footnote, and syntax
|
||||
// highlighting provided by [Chroma](https://github.com/alecthomas/chroma).
|
||||
//
|
||||
// ```
|
||||
|
Reference in New Issue
Block a user