Merge pull request #445 from ProjectPatatoe/jsonfix

upload not responding as actual json by @ProjectPatatoe
This commit is contained in:
Dan 2021-03-14 09:07:54 +07:00 committed by GitHub
commit 99e92d4a34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,6 +47,7 @@ if (login()) {
}
}
header('Content-Type: application/json');
echo json_encode(array(
'path' => $path,
'name' => $name,