forked from artsy/metaphysics
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preserve empty array in query string
qs ignores empty array/object and prevents us from sending `?array[]=`. This is a workaround to map an empty array to `[null]` so it gets treated as an empty string, and utilize qs `filter` function to map the value. A regression test was included. ljharb/qs#362
- Loading branch information
1 parent
02a0f81
commit 45de92a
Showing
1 changed file
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters