commit
3e62c6b813
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue