mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-09 00:34:10 -04:00
Changed Resource Consumer for correct parsing POST requests
This commit is contained in:
parent
34e499ddf1
commit
c68508f8cf
1 changed files with 2 additions and 2 deletions
|
|
@ -49,12 +49,12 @@ func (handler ResourceConsumerHandler) ServeHTTP(w http.ResponseWriter, req *htt
|
|||
}
|
||||
// handle consumeCPU
|
||||
if req.URL.Path == consumeCPUAddress {
|
||||
handler.handleConsumeCPU(w, req.PostForm)
|
||||
handler.handleConsumeCPU(w, req.Form)
|
||||
return
|
||||
}
|
||||
// handle consumeMem
|
||||
if req.URL.Path == consumeMemAddress {
|
||||
handler.handleConsumeMem(w, req.PostForm)
|
||||
handler.handleConsumeMem(w, req.Form)
|
||||
return
|
||||
}
|
||||
// handle getCurrentStatus
|
||||
|
|
|
|||
Loading…
Reference in a new issue