doubleEncode returns the double-URL-encoded form of a character. e.g., 's' (0x73) → %73 → %2573
(c rune)
| 2141 | // doubleEncode returns the double-URL-encoded form of a character. |
| 2142 | // e.g., 's' (0x73) → %73 → %2573 |
| 2143 | func doubleEncode(c rune) string { |
| 2144 | singleEncoded := fmt.Sprintf("%%%X", c) |
| 2145 | return url.QueryEscape(singleEncoded) |
| 2146 | } |
| 2147 | |
| 2148 | // requestDoubleEncoding makes HTTP requests doing a double URL encode of the path. |
| 2149 | // It tests three strategies: |
no outgoing calls
no test coverage detected