Skip to content

Commit 6822285

Browse files
author
Hans Kristian Flaatten
committed
feat(api): follow redirects from Nasjonal Turbase API
1 parent 0056f3a commit 6822285

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.js

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ module.exports.conf = {
1010

1111
module.exports._requestDefaults = function reqestDefaults() {
1212
return require('request').defaults({
13+
followAllRedirects: true,
1314
baseUrl: `http://${module.exports.conf.API_ENV}.nasjonalturbase.no/`,
1415
headers: {
1516
'user-agent': module.exports.conf.USER_AGENT,

0 commit comments

Comments
 (0)