Skip to content

Commit eb475c9

Browse files
authored
Update index.js
1 parent f1d1a95 commit eb475c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ function getNpmData(packager, file) {
189189

190190
//路由
191191
http.createServer(function (req, res) {
192-
console.log(req.url)
193192
req.url=nodeurl.parse(req.url).pathname
193+
console.log(req.url);
194194
//路由的路径是/gh/:owner/:repo@:branch/:path
195195
if (req.url.indexOf('/gh/') === 0) {
196196
var url = req.url.split('/gh/')[1];

0 commit comments

Comments
 (0)