mirror of
https://github.com/caddyserver/caddy.git
synced 2025-10-19 07:43:17 +00:00
chore: fix some comments (#7303)
This commit is contained in:
parent
de6b78009b
commit
d115cd1042
3 changed files with 3 additions and 3 deletions
|
@ -91,7 +91,7 @@ func parseBind(h Helper) ([]ConfigValue, error) {
|
||||||
// curves <curves...>
|
// curves <curves...>
|
||||||
// client_auth {
|
// client_auth {
|
||||||
// mode [request|require|verify_if_given|require_and_verify]
|
// mode [request|require|verify_if_given|require_and_verify]
|
||||||
// trust_pool <module_name> [...]
|
// trust_pool <module_name> [...]
|
||||||
// trusted_leaf_cert <base64_der>
|
// trusted_leaf_cert <base64_der>
|
||||||
// trusted_leaf_cert_file <filename>
|
// trusted_leaf_cert_file <filename>
|
||||||
// }
|
// }
|
||||||
|
|
|
@ -50,7 +50,7 @@ type Encode struct {
|
||||||
// Only encode responses that are at least this many bytes long.
|
// Only encode responses that are at least this many bytes long.
|
||||||
MinLength int `json:"minimum_length,omitempty"`
|
MinLength int `json:"minimum_length,omitempty"`
|
||||||
|
|
||||||
// Only encode responses that match against this ResponseMmatcher.
|
// Only encode responses that match against this ResponseMatcher.
|
||||||
// The default is a collection of text-based Content-Type headers.
|
// The default is a collection of text-based Content-Type headers.
|
||||||
Matcher *caddyhttp.ResponseMatcher `json:"match,omitempty"`
|
Matcher *caddyhttp.ResponseMatcher `json:"match,omitempty"`
|
||||||
|
|
||||||
|
|
|
@ -84,7 +84,7 @@ func parseCaddyfile(h httpcaddyfile.Helper) ([]httpcaddyfile.ConfigValue, error)
|
||||||
// create the reverse proxy handler
|
// create the reverse proxy handler
|
||||||
rpHandler := &reverseproxy.Handler{
|
rpHandler := &reverseproxy.Handler{
|
||||||
// set up defaults for header_up; reverse_proxy already deals with
|
// set up defaults for header_up; reverse_proxy already deals with
|
||||||
// adding the other three X-Forwarded-* headers, but for this flow,
|
// adding the other three X-Forwarded-* headers, but for this flow,
|
||||||
// we want to also send along the incoming method and URI since this
|
// we want to also send along the incoming method and URI since this
|
||||||
// request will have a rewritten URI and method.
|
// request will have a rewritten URI and method.
|
||||||
Headers: &headers.Handler{
|
Headers: &headers.Handler{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue