mirror of
https://shylinux.com/x/icebergs
synced 2025-05-03 20:07:01 +08:00
opt some
This commit is contained in:
parent
db15dfed1b
commit
8782f01ec8
@ -112,8 +112,7 @@ func _spide_list(m *ice.Message, arg ...string) {
|
|||||||
|
|
||||||
// 错误信息
|
// 错误信息
|
||||||
if m.Warn(res.StatusCode != http.StatusOK, ice.ErrNotFound, uri, "status", res.Status) {
|
if m.Warn(res.StatusCode != http.StatusOK, ice.ErrNotFound, uri, "status", res.Status) {
|
||||||
b, _ := ioutil.ReadAll(res.Body)
|
// b, _ := ioutil.ReadAll(res.Body)
|
||||||
m.Debug("whhat %v", string(b))
|
|
||||||
switch m.Set(ice.MSG_RESULT); res.StatusCode {
|
switch m.Set(ice.MSG_RESULT); res.StatusCode {
|
||||||
case http.StatusNotFound:
|
case http.StatusNotFound:
|
||||||
m.Warn(true, ice.ErrNotFound, uri)
|
m.Warn(true, ice.ErrNotFound, uri)
|
||||||
@ -142,7 +141,6 @@ func _spide_body(m *ice.Message, method string, arg ...string) (io.Reader, map[s
|
|||||||
data = append(data, url.QueryEscape(arg[i])+"="+url.QueryEscape(arg[i+1]))
|
data = append(data, url.QueryEscape(arg[i])+"="+url.QueryEscape(arg[i+1]))
|
||||||
}
|
}
|
||||||
body = bytes.NewBufferString(strings.Join(data, "&"))
|
body = bytes.NewBufferString(strings.Join(data, "&"))
|
||||||
m.Debug("what %v", strings.Join(data, "&"))
|
|
||||||
head[ContentType] = ContentFORM
|
head[ContentType] = ContentFORM
|
||||||
|
|
||||||
case SPIDE_PART:
|
case SPIDE_PART:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user