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 e7932c1 commit adfba1eCopy full SHA for adfba1e
sandbox/src/routes/r4/retrieveAttachment.js
@@ -18,9 +18,8 @@ module.exports = [
18
}
19
20
const binaryId = request.params.binaryId;
21
- const url = request.url.href;
22
const objectStore = "/ObjectStore/d497bbe3-f88b-45f1-b3d4-9c563e4c0f5f";
23
- const location = url.split('/FHIR')[0] + objectStore;
+ const location = request.server.info.protocol + "://" + request.headers['host'] + objectStore;
24
25
if ((validationUtil.hasLegacyPrefix(binaryId) || validationUtil.isValidUuid(binaryId)) && request.method === 'get') {
26
const response = h.response().code(307);
0 commit comments