(m map[string]string)
| 810 | } |
| 811 | |
| 812 | func mapToValues(m map[string]string) url.Values { |
| 813 | v := url.Values{} |
| 814 | for name, value := range m { |
| 815 | v.Set(name, value) |
| 816 | } |
| 817 | |
| 818 | return v |
| 819 | } |
| 820 | |
| 821 | // cloneRequest returns a clone of the provided *http.Request. |
| 822 | // The clone is a shallow copy of the struct and its Header map. |