mirror of https://github.com/k3s-io/k3s
Changed Resource Consumer for correct parsing POST requests
parent
34e499ddf1
commit
c68508f8cf
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue