Closed heruan closed 9 years ago
This sounds pretty reasonable. @bryanrsmith Please review when available. Thanks guys!
Thanks, @heruan! Great suggestion. Couple things...
feat(http-client): ignore baseUrl when using absolute URLs
Done! Thank you @EisenbergEffect and @bryanrsmith :+1:
When using a configured instance of
http-client
with abaseUrl
, using the shortcut methods (e.g.get(url)
) won't work with absolute URIs, where in many cases one should deal with absolute URIs from the same API (e.g. HTTPLink
header fields). The PR adds this support ignoring thebaseUrl
with absolute URIs, using aRegExp
to have the match case-insensitive.