This commit is contained in:
gringofe 2020-01-01 17:55:23 +01:00
parent fa0c2d9774
commit 61bdab1e30

View file

@ -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;
}
}