Skip to content

Commit

Permalink
fix: fix bug in server-config on allowedOrigin (#2607)
Browse files Browse the repository at this point in the history
  • Loading branch information
calebcartwright authored and chris48s committed Dec 30, 2018
1 parent 4baf16c commit dcfd849
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/server-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ function envArray(envVar, defaultValue, delimiter) {
if (envVar) {
return envVar.split(delimiter)
} else {
return defaultValue
return Array.isArray(defaultValue)
? defaultValue
: defaultValue.split(delimiter)
}
}

Expand Down

0 comments on commit dcfd849

Please sign in to comment.