diff --git a/routes/ldp.ts b/routes/ldp.ts index a823ebd..f945f0a 100644 --- a/routes/ldp.ts +++ b/routes/ldp.ts @@ -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; }