mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-10-31 02:09:27 +08:00 
			
		
		
		
	chore: fix some comments (#7303)
This commit is contained in:
		| @ -91,7 +91,7 @@ func parseBind(h Helper) ([]ConfigValue, error) { | ||||
| //	    curves    <curves...> | ||||
| //	    client_auth { | ||||
| //	        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_file <filename> | ||||
| //	    } | ||||
|  | ||||
| @ -50,7 +50,7 @@ type Encode struct { | ||||
| 	// Only encode responses that are at least this many bytes long. | ||||
| 	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. | ||||
| 	Matcher *caddyhttp.ResponseMatcher `json:"match,omitempty"` | ||||
|  | ||||
|  | ||||
| @ -84,7 +84,7 @@ func parseCaddyfile(h httpcaddyfile.Helper) ([]httpcaddyfile.ConfigValue, error) | ||||
| 	// create the reverse proxy handler | ||||
| 	rpHandler := &reverseproxy.Handler{ | ||||
| 		// 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 | ||||
| 		// request will have a rewritten URI and method. | ||||
| 		Headers: &headers.Handler{ | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 wyrapeseed
					wyrapeseed