Proxy the attachment querystring param

This commit is contained in:
PJ 2020-02-04 16:37:19 +01:00
parent 4833eac81b
commit 6569c2677c
1 changed files with 3 additions and 1 deletions

View File

@ -111,7 +111,9 @@ export class Server {
},
proxyReqPathResolver: req => {
const { hash } = req.params
return `/skynet/skylink/${hash}`
return req.query && req.query.attachment
? `/skynet/skylink/${hash}?attachment=true`
: `/skynet/skylink/${hash}`
}
})
)