Commit 5fdf97a
committed
Fix empty query parameters in
Before, there was no distinction between empty parameters passed to the
backend. For example, for this query string: `?expand`
The query parameter string was parsed into `params` (by Rails), and
later on, translated into a query parameter string with the method
`.to_query`. This lead to passing empty query parameters adding an `=`
sign in the end. For example: `?expand=`.
That make the backend throw a 400 error with a boolean value not
recognized.
This commit, split the query parameters in empty and non-empty, solving
this issue.expand_parameters method1 parent fc622a8 commit 5fdf97a
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
118 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
119 | 124 | | |
120 | 125 | | |
121 | 126 | | |
| |||
0 commit comments