Store and publish annotations on the web, as described in the Web Annotation Discovery proposal.
Browse Source

Fix scheme of URLs (read X-Forwarded-Proto header).

main
Gerben 2 years ago
parent
commit
53e692cf0a
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      routes/ldp.ts

+ 2
- 1
routes/ldp.ts View File

@@ -45,7 +45,8 @@ export class Container {
collectionInfo: CollectionInfo,
) {
const host = this.req.headers['x-forwarded-host'] || this.req.headers.host;
this.url = `${this.req.protocol}://${host}${this.req.baseUrl}/${this.containerPath}`;
const protocol = this.req.headers['x-forwarded-proto'] || this.req.protocol;
this.url = `${protocol}://${host}${this.req.baseUrl}/${this.containerPath}`;
this.name = collectionInfo.name;
this.label = collectionInfo.label;
}


Loading…
Cancel
Save