Proxy the attachment querystring param
This commit is contained in:
parent
4833eac81b
commit
6569c2677c
|
@ -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}`
|
||||
}
|
||||
})
|
||||
)
|
||||
|
|
Reference in New Issue