(m map[string]string)
| 1136 | } |
| 1137 | |
| 1138 | func mapToValues(m map[string]string) url.Values { |
| 1139 | v := url.Values{} |
| 1140 | for name, value := range m { |
| 1141 | v.Set(name, value) |
| 1142 | } |
| 1143 | |
| 1144 | return v |
| 1145 | } |
| 1146 | |
| 1147 | // isCrossHostRedirect reports whether req is a redirect that has left the |
| 1148 | // original request's host at any point in the chain. It detects this by walking |
no test coverage detected