Skip to content

Commit

Permalink
Merge pull request #26 from mactkg/fix-qs
Browse files Browse the repository at this point in the history
Fix 404 bug when UTF8 character is included in URL
  • Loading branch information
adlawson authored Dec 26, 2016
2 parents fb840b7 + 2c3b07a commit 8465a3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"bugs": "https://github.com/adlawson/mixcloud-tracklist/issues",
"license": "MIT",
"engines": {
"node": ">=6.9.0"
"node": ">=6.9.0"
},
"dependencies": {
"dustjs-linkedin": "~2.7.0",
"dustjs-linkedin": "~2.7.0",
"request": "~2.78"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion tracklist.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function fetchData(location, fn) {
request({
"uri": "/player/details",
"baseUrl": location.protocol + "//" + location.hostname,
"qs": { "key": encodeURIComponent(location.pathname) },
"qs": { "key": location.pathname },
"json": true
}, (error, response, data) => {
if (!error && response.statusCode === 200 && data.cloudcast.sections.length > 0) {
Expand Down

0 comments on commit 8465a3b

Please sign in to comment.