owncloud-sdk icon indicating copy to clipboard operation
owncloud-sdk copied to clipboard

helpers._makeOCSrequest sends `undefined=undefined` to the server when called without data

Open individual-it opened this issue 3 years ago • 0 comments

e.g. from Apps.enableApp

maybe it would be better not to send any data?

POST /owncloud-core/ocs/v1.php/cloud/apps/files HTTP/1.1
Host: localhost
Connection: keep-alive
Content-Length: 19
authorization: Basic YWRtaW46YWRtaW4=
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/85.0.4183.83 Safari/537.36
OCS-APIREQUEST: true
X-Request-ID: a4745ce4-66fa-45c7-a9ad-9f10a5c0c393
content-type: application/x-www-form-urlencoded
Accept: */*
Origin: http://localhost:9876
Sec-Fetch-Site: same-site
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Referer: http://localhost:9876/context.html
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US

undefined=undefined

individual-it avatar Sep 07 '20 10:09 individual-it