Split up common.go, file path fixes and much more

This commit is contained in:
Adrian Gallagher
2019-06-04 17:04:18 +10:00
parent 8c62316e82
commit e965e54e09
74 changed files with 524 additions and 617 deletions

View File

@@ -10,6 +10,7 @@ import (
"net/http"
"net/http/httputil"
"net/url"
"strings"
"sync"
"time"
@@ -327,7 +328,7 @@ func (r *Requester) DoRequest(req *http.Request, path string, body io.Reader, re
default:
switch {
case common.StringContains(resp.Header.Get("Content-Type"), "application/json"):
case strings.Contains(resp.Header.Get("Content-Type"), "application/json"):
reader = resp.Body
default: