|
7 | 7 | ) |
8 | 8 |
|
9 | 9 | var ( |
10 | | - strSlash = []byte("/") |
11 | | - strSlashSlash = []byte("//") |
12 | | - strSlashDotDot = []byte("/..") |
13 | | - strSlashDotSlash = []byte("/./") |
14 | | - strSlashDotDotSlash = []byte("/../") |
15 | | - strCRLF = []byte("\r\n") |
16 | | - strHTTP = []byte("http") |
17 | | - strHTTPS = []byte("https") |
18 | | - strHTTP10 = []byte("HTTP/1.0") |
19 | | - strHTTP11 = []byte("HTTP/1.1") |
20 | | - strColon = []byte(":") |
21 | | - strColonSlashSlash = []byte("://") |
22 | | - strColonSpace = []byte(": ") |
23 | | - strCommaSpace = []byte(", ") |
24 | | - strGMT = []byte("GMT") |
| 10 | + strSlash = []byte("/") |
| 11 | + strSlashSlash = []byte("//") |
| 12 | + strSlashDotDot = []byte("/..") |
| 13 | + strSlashDotSlash = []byte("/./") |
| 14 | + strSlashDotDotSlash = []byte("/../") |
| 15 | + strBackSlashDotDot = []byte(`\..`) |
| 16 | + strBackSlashDotBackSlash = []byte(`\.\`) |
| 17 | + strSlashDotDotBackSlash = []byte(`/..\`) |
| 18 | + strBackSlashDotDotBackSlash = []byte(`\..\`) |
| 19 | + strCRLF = []byte("\r\n") |
| 20 | + strHTTP = []byte("http") |
| 21 | + strHTTPS = []byte("https") |
| 22 | + strHTTP10 = []byte("HTTP/1.0") |
| 23 | + strHTTP11 = []byte("HTTP/1.1") |
| 24 | + strColon = []byte(":") |
| 25 | + strColonSlashSlash = []byte("://") |
| 26 | + strColonSpace = []byte(": ") |
| 27 | + strCommaSpace = []byte(", ") |
| 28 | + strGMT = []byte("GMT") |
25 | 29 |
|
26 | 30 | strResponseContinue = []byte("HTTP/1.1 100 Continue\r\n\r\n") |
27 | 31 |
|
|
0 commit comments