mirror of
https://github.com/caddyserver/caddy.git
synced 2025-04-23 13:14:08 +08:00
Annotate to ignore a line with forced first 5 symbols
This commit is contained in:
parent
8b02800742
commit
430910e0a1
@ -162,7 +162,7 @@ func (c *httpRedirectConn) Read(p []byte) (int, error) {
|
||||
// looks like it might've been a misdirected plaintext HTTP request.
|
||||
func firstBytesLookLikeHTTP(hdr []byte) bool {
|
||||
switch string(hdr[:5]) {
|
||||
case "GET /", "HEAD ", "POST ", "PUT /", "OPTIO":
|
||||
case "GET /", "HEAD ", "POST ", "PUT /", "OPTIO": // codespell:ignore
|
||||
return true
|
||||
}
|
||||
return false
|
||||
|
Loading…
x
Reference in New Issue
Block a user