Skip to content

Commit d56bd5a

Browse files
authored
Merge pull request #49 from curio/master
Remove HTTP as part of POST handler response
2 parents b4e121b + a7f2519 commit d56bd5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/handlers/PostHandler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class PostHandler extends BaseHandler {
1515
send(req, res) {
1616
return this.store.create(req)
1717
.then((File) => {
18-
const url = `http://${req.headers.host}${this.store.path}/${File.id}`;
18+
const url = `//${req.headers.host}${this.store.path}/${File.id}`;
1919
this.emit(EVENT_ENDPOINT_CREATED, { url });
2020
return super.send(res, 201, { Location: url });
2121
})

0 commit comments

Comments
 (0)