Request: Add additional method support for auth/unauth requests
@@ -193,11 +193,19 @@ func (h *Handler) requestWorker() {
if job.Auth {
<-h.timeLockAuth
+ if job.Request.Method != "GET" {
httpResponse, err = h.Client.Do(job.Request)
+ } else {
+ httpResponse, err = h.Client.Get(job.Path)
+ }
h.timeLockAuth <- 1
} else {
<-h.timeLock
+ if job.Request.Method != "GET" {
+ httpResponse, err = h.Client.Do(job.Request)
+ } else {
httpResponse, err = h.Client.Get(job.Path)
+ }
h.timeLock <- 1
}
