Merge pull request #177 from worldflyingct/pr

[fix ] HTTP-API: 修复start_relay_pull接口错误解析json的bug
pull/180/head
yoko 3 years ago committed by GitHub
commit 56033db6e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -109,7 +109,7 @@ func (h *HttpApiServer) ctrlStartRelayPullHandler(w http.ResponseWriter, req *ht
var v base.ApiCtrlStartRelayPull var v base.ApiCtrlStartRelayPull
var info base.ApiCtrlStartRelayPullReq var info base.ApiCtrlStartRelayPullReq
j, err := unmarshalRequestJsonBody(req, info, "url") j, err := unmarshalRequestJsonBody(req, &info, "url")
if err != nil { if err != nil {
Log.Warnf("http api start pull error. err=%+v", err) Log.Warnf("http api start pull error. err=%+v", err)
v.ErrorCode = base.ErrorCodeParamMissing v.ErrorCode = base.ErrorCodeParamMissing

Loading…
Cancel
Save