Skip to content

Commit

Permalink
update http to support new version
Browse files Browse the repository at this point in the history
  • Loading branch information
medcl committed Jan 17, 2020
1 parent 0eb3c01 commit 248275c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func Get(url string,auth *Auth,proxy string) (*http.Response, string, []error) {
request.SetBasicAuth(auth.User,auth.Pass)
}

request.Header["Content-Type"]= "application/json"
//request.Header["Content-Type"]= "application/json"
request.Header.Set("Content-Type", "application/json")

if(len(proxy)>0){
Expand Down

0 comments on commit 248275c

Please sign in to comment.