Skip to content

Commit

Permalink
fix: Update qs.parse to change array format based on env
Browse files Browse the repository at this point in the history
  • Loading branch information
andreidmt committed Oct 4, 2019
1 parent b92fd32 commit b6fc88f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _env
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ CORS_METHODS=GET,POST,PUT,PATCH,DELETE,OPTIONS
QS_DELIMITER=&
QS_ALLOW_DOTS=true
QS_STRICT_NULL_HANDLING=true
QS_ARRAY_FORMAT=brackets
QS_ARRAY_FORMAT=comma

##
## Help secure Express apps with various HTTP headers
Expand Down
2 changes: 1 addition & 1 deletion src/middleware/req-query.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = ({
delimiter: QS_DELIMITER,
allowDots: QS_ALLOW_DOTS,
strictNullHandling: QS_STRICT_NULL_HANDLING,
arrayFormat: QS_ARRAY_FORMAT,
comma: QS_ARRAY_FORMAT === "comma",
})

next()
Expand Down

0 comments on commit b6fc88f

Please sign in to comment.