Commit 732e0b0
committed
Improve handling of partially parseable query strings
Previously we assumed that if qs.stringify didn't match the query
string, then the queryString & queryObj properties would be empty, and
so leaving the querystring in the URL (basically disabling structured
generation of query = { a: b } style code and using raw URLs instead)
would be safe.
It turns out though that for partially parseable cases, we can get HARs
with a URL containing a broken query string _and_ a valid queryString
property with some values in it. We now actively ignore the latter, so
the URL as always used as-is.1 parent f00b01b commit 732e0b0
2 files changed
+11
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
246 | | - | |
| 245 | + | |
| 246 | + | |
247 | 247 | | |
| 248 | + | |
| 249 | + | |
248 | 250 | | |
249 | 251 | | |
250 | 252 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
6 | 11 | | |
0 commit comments