diff --git a/libproxy/proxy.go b/libproxy/proxy.go index 9a60185..7cad19c 100644 --- a/libproxy/proxy.go +++ b/libproxy/proxy.go @@ -127,6 +127,7 @@ func proxyHandler(response http.ResponseWriter, request *http.Request) { // Make the request var proxyRequest http.Request; + proxyRequest.Header = make(http.Header); proxyRequest.Method = requestData.Method; proxyRequest.URL, err = url.Parse(requestData.Url); if(len(requestData.Auth.Username) > 0 && len(requestData.Auth.Password) > 0) { @@ -179,4 +180,4 @@ func headerToArray(header http.Header) (res map[string]string) { } return res; -} \ No newline at end of file +}