Commit c7e682a509b3799849c99c314fe7dbf8aaf0733a
Handle scoped package names
cel committed on 11/25/2017, 8:02:45 PMParent: c5edad5b4ad6b6432f5c825f69aa747a2fde423d
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -461,9 +461,9 @@ | ||
461 | 461 | |
462 | 462 | Req.prototype.servePkg = function (pathname) { |
463 | 463 | var self = this |
464 | 464 | var parts = pathname.split('/') |
465 | - var pkgName = parts.shift() | |
465 | + var pkgName = parts.shift().replace(/%2f/i, '/') | |
466 | 466 | if (parts[0] === '-rev') return this.respondError(501, 'Unpublish is not supported') |
467 | 467 | var spec = parts.shift() |
468 | 468 | if (spec) try { spec = decodeURIComponent(spec) } finally {} |
469 | 469 | if (parts.length > 0) return this.respondError(404) |
Built with git-ssb-web