We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20445e2 commit 2c9552fCopy full SHA for 2c9552f
sandbox/src/routes/r4/retrieveAttachment.js
@@ -19,7 +19,7 @@ module.exports = [
19
20
const binaryId = request.params.binaryId;
21
const objectStore = "/ObjectStore/d497bbe3-f88b-45f1-b3d4-9c563e4c0f5f";
22
- const location = request.server.info.protocol + "://" + request.headers['host'] + objectStore;
+ const location = request.headers['x-forwarded-proto'] + "://" + request.headers['x-forwarded-for'] + objectStore;
23
24
if ((validationUtil.hasLegacyPrefix(binaryId) || validationUtil.isValidUuid(binaryId)) && request.method === 'get') {
25
const response = h.response().code(307);
0 commit comments