Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Dima Shirokov authored and kaizensoze committed Oct 8, 2016
1 parent 0704c0e commit 1ffdc84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ var Client = module.exports = function(config) {
let mediaTypes = {};

for(let accept in mediaHash) {
for(let i in mediaHash[accept])
mediaTypes[mediaHash[accept][i]] = accept;
for(let route in mediaHash[accept])
mediaTypes[mediaHash[accept][route]] = accept;
}

this.acceptUrls = mediaTypes;
Expand Down

0 comments on commit 1ffdc84

Please sign in to comment.