parseRequestURI extracts the path from an absolute proxy URI.
(rawURI string)
| 238 | |
| 239 | // parseRequestURI extracts the path from an absolute proxy URI. |
| 240 | func parseRequestURI(rawURI string) string { |
| 241 | u, err := url.Parse(rawURI) |
| 242 | if err != nil { |
| 243 | return rawURI |
| 244 | } |
| 245 | return u.Path |
| 246 | } |