1
0
mirror of https://shylinux.com/x/icebergs synced 2025-05-02 11:37:01 +08:00
This commit is contained in:
shylinux 2021-05-07 09:44:26 +08:00
parent 3527c4275d
commit 4dc9a40470

View File

@ -332,6 +332,9 @@ func init() {
m.Resultv(data[ice.MSG_RESULT]) m.Resultv(data[ice.MSG_RESULT])
default: default:
b, _ := ioutil.ReadAll(res.Body)
m.Echo(string(b))
break
if strings.HasPrefix(res.Header.Get(ContentType), ContentHTML) { if strings.HasPrefix(res.Header.Get(ContentType), ContentHTML) {
b, _ := ioutil.ReadAll(res.Body) b, _ := ioutil.ReadAll(res.Body)
m.Echo(string(b)) m.Echo(string(b))