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
|
// Make the request
|
||||||
var proxyRequest http.Request;
|
var proxyRequest http.Request;
|
||||||
|
proxyRequest.Header = make(http.Header);
|
||||||
proxyRequest.Method = requestData.Method;
|
proxyRequest.Method = requestData.Method;
|
||||||
proxyRequest.URL, err = url.Parse(requestData.Url);
|
proxyRequest.URL, err = url.Parse(requestData.Url);
|
||||||
if(len(requestData.Auth.Username) > 0 && len(requestData.Auth.Password) > 0) {
|
if(len(requestData.Auth.Username) > 0 && len(requestData.Auth.Password) > 0) {
|
||||||
|
|
Loading…
Reference in a new issue