Skip to content

Commit

Permalink
Headers callback
Browse files Browse the repository at this point in the history
  • Loading branch information
zackify committed Jan 10, 2017
1 parent 119c307 commit 74d4b7c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utilities/normalize.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ const buildObjectFromTag = (strings, vars, partial) => {
if (partial.url && key === 'url' && typeof vars[index] === 'function') {
return [key, vars[index](partial.url)]
}

if (key === 'headers' && typeof vars[index] === 'function') {
return [key, vars[index](partial)]
}
return [key, vars[index]]
})
// Convert to object
Expand Down

0 comments on commit 74d4b7c

Please sign in to comment.