fix(xo-server-audit/_exportRecords): dont return 200 on failure

See ec899be3b
This commit is contained in:
Julien Fontanet
2020-04-17 16:14:34 +02:00
parent ec899be3b5
commit a2e39c5e2e
2 changed files with 2 additions and 1 deletions

View File

@@ -32,5 +32,6 @@
>
> In case of conflict, the highest (lowest in previous list) `$version` wins.
- xo-server-audit patch
- xen-api patch
- xo-server patch

View File

@@ -208,7 +208,7 @@ class AuditXoPlugin {
return this._xo
.registerHttpRequest(
(req, res) => {
res.writeHead(200, {
res.set({
'content-disposition': 'attachment',
'content-type': 'application/json',
})