Commit b9cbfdb
committed
Make empty params to request give no query string
The previous behaviour was to insert an empty query string
for an empty map of params, but leave out the key in case it was nil.
This change makes it consistently leave out the :query-string in both cases.
The previous behaviour caused problems when using the ring request/request-url
function - it would (and still does as of time of writing) add a trailing ?
to the url when the empty query string is there. This can be confusing.
Discussion: ring-clojure/ring#543 (comment)1 parent 143f5bc commit b9cbfdb
2 files changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
131 | 136 | | |
132 | 137 | | |
133 | 138 | | |
| |||
0 commit comments