mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-02-20 17:33:18 +00:00
Fix bug that caused request body not being sent
This commit is contained in:
parent
b1a5bb8902
commit
f8e6894ea0
@ -7,7 +7,7 @@ promisifiedServerRequest = Promise.promisify(server.request, server)
|
||||
|
||||
class CanvasRequestService extends Canvas(_, Promise)
|
||||
_request: (params) ->
|
||||
params.json = true
|
||||
params.json = params.data
|
||||
params.gzip ?= true
|
||||
promisifiedServerRequest(params).spread (response, body) ->
|
||||
if 200 <= response.statusCode < 300
|
||||
|
Loading…
x
Reference in New Issue
Block a user