Skip to content
Browse files

Fix url building for doc.versions[v].dist.tarball

Adds trailing slash to h, so we don't end up with
urls like http://lolcathost:5984registry/..
  • Loading branch information...
1 parent 5a2161e commit c8414d69d0c074b71927e57b476593ac1a6b8f36 @peritus peritus committed with isaacs
Showing with 1 addition and 1 deletion.
  1. +1 −1 registry/app.js
View
2 registry/app.js
@@ -881,7 +881,7 @@ ddoc.shows.package = function (doc, req) {
.concat(["_rewrite"]).join("/")
}
- var h = "http://" + req.headers.Host
+ var h = "http://" + req.headers.Host + "/"
doc.versions[v].dist.tarball = h + basePath + t
}

0 comments on commit c8414d6

Please sign in to comment.
Something went wrong with that request. Please try again.