(url string, remoteIP string)
| 25 | ) |
| 26 | |
| 27 | func httpRequest(url string, remoteIP string) *http.Request { |
| 28 | req := httptest.NewRequest("GET", url, nil) |
| 29 | req.Header.Set("x-real-ip", remoteIP) |
| 30 | return req |
| 31 | } |
| 32 | |
| 33 | func TestHTTP(t *testing.T) { |
| 34 | a := assertions.New(t) |