Skip to content

Commit

Permalink
fix(xo-server/rest-api): fix host's logs URL
Browse files Browse the repository at this point in the history
Introduced by 0815d54
  • Loading branch information
julien-f committed Apr 2, 2024
1 parent 0815d54 commit 17ed63f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/xo-server/src/xo-mixins/rest-api.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export default class RestApi {
async 'logs.tar'(req, res) {
const host = req.xapiObject

const response = await host.$xapi.getResource('/audit_log', { host })
const response = await host.$xapi.getResource('/host_logs_download', { host })

res.setHeader('content-type', 'application/x-tar')
await pipeline(response.body, compressMaybe(req, res))
Expand Down

0 comments on commit 17ed63f

Please sign in to comment.