Commit 49883a04 authored by Yu-Ju Hong's avatar Yu-Ju Hong

Merge pull request #13140 from socaa/post-request-resource-consumer

Changed Resource Consumer for correct parsing POST requests
parents 9f508e94 c68508f8
...@@ -49,12 +49,12 @@ func (handler ResourceConsumerHandler) ServeHTTP(w http.ResponseWriter, req *htt ...@@ -49,12 +49,12 @@ func (handler ResourceConsumerHandler) ServeHTTP(w http.ResponseWriter, req *htt
} }
// handle consumeCPU // handle consumeCPU
if req.URL.Path == consumeCPUAddress { if req.URL.Path == consumeCPUAddress {
handler.handleConsumeCPU(w, req.PostForm) handler.handleConsumeCPU(w, req.Form)
return return
} }
// handle consumeMem // handle consumeMem
if req.URL.Path == consumeMemAddress { if req.URL.Path == consumeMemAddress {
handler.handleConsumeMem(w, req.PostForm) handler.handleConsumeMem(w, req.Form)
return return
} }
// handle getCurrentStatus // handle getCurrentStatus
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment