Skip to content

Commit

Permalink
fix: replace all URLs in "link" header
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Jan 2, 2019
1 parent fc0c204 commit 0521ee8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/additions.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function fixtureAdditions (state, { id, fixture }) {
}

// e.g. https://api.github.com/user -> http://localhost/api.github.com/fixturesid123/user
return value.replace(/https?:\/\/([^/]+)\//, `${state.fixturesUrl}/$1/${id}/`)
return value.replace(/https?:\/\/([^/]+)\//g, `${state.fixturesUrl}/$1/${id}/`)
})

if (fixture.responseIsBinary) {
Expand Down

0 comments on commit 0521ee8

Please sign in to comment.