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.
2 parents b4e121b + a7f2519 commit d56bd5aCopy full SHA for d56bd5a
lib/handlers/PostHandler.js
@@ -15,7 +15,7 @@ class PostHandler extends BaseHandler {
15
send(req, res) {
16
return this.store.create(req)
17
.then((File) => {
18
- const url = `http://${req.headers.host}${this.store.path}/${File.id}`;
+ const url = `//${req.headers.host}${this.store.path}/${File.id}`;
19
this.emit(EVENT_ENDPOINT_CREATED, { url });
20
return super.send(res, 201, { Location: url });
21
})
0 commit comments