x
This commit is contained in:
parent
9172e504fd
commit
c137cfcba3
@ -341,6 +341,11 @@ var handleMessage = func(msgs ...interface{}) interface{} {
|
||||
if err != nil {
|
||||
return nil
|
||||
}
|
||||
ctp := rsp.Header.Get("content-type")
|
||||
if strings.Contains(ctp, "text") {
|
||||
data, _ := ioutil.ReadAll(rsp.Body)
|
||||
return string(data)
|
||||
}
|
||||
return rsp
|
||||
}
|
||||
return v
|
||||
|
||||
Loading…
Reference in New Issue
Block a user