diff options
Diffstat (limited to 'internal/http/http.go')
| -rw-r--r-- | internal/http/http.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/http/http.go b/internal/http/http.go index 3c8e4e1..ae791a9 100644 --- a/internal/http/http.go +++ b/internal/http/http.go @@ -7,6 +7,7 @@ import ( "net/http" "net/url" "strings" + "time" "github.com/jwijenbergh/eduvpn-common/internal/types" ) @@ -91,7 +92,7 @@ func HTTPMethodWithOpts(method string, url string, opts *HTTPOptionalParams) (ht } // Create a client - client := &http.Client{} + client := &http.Client{Timeout: 5 * time.Second} errorMessage := fmt.Sprintf("failed HTTP request with method %s and url %s", method, url) |
