Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use querystring to stringify data #489

Merged
merged 2 commits into from Feb 20, 2024
Merged

Conversation

killagu
Copy link
Member

@killagu killagu commented Feb 20, 2024

No description provided.

@killagu killagu requested a review from fengmk2 February 20, 2024 09:36
@fengmk2 fengmk2 self-assigned this Feb 20, 2024
@fengmk2 fengmk2 added the bug Something isn't working label Feb 20, 2024
@fengmk2
Copy link
Member

fengmk2 commented Feb 20, 2024

单测挂了

Copy link

codecov bot commented Feb 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f6ac20b) 98.68% compared to head (bc1a13f) 98.68%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #489      +/-   ##
==========================================
- Coverage   98.68%   98.68%   -0.01%     
==========================================
  Files          10       10              
  Lines        1597     1595       -2     
  Branches      273      271       -2     
==========================================
- Hits         1576     1574       -2     
  Misses         21       21              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -37,7 +38,7 @@ describe('options.data.test.ts', () => {
assert.equal(response.data.method, 'GET');
assert(response.url.startsWith(_url));
assert(!response.redirected);
assert.equal(response.data.url, '/?sql=SELECT+*+from+table&data=%E5%93%88%E5%93%88&c=2222&d=1111&e=e%28%29+%7B%0A++++++++++return+%22%22%3B%0A++++++++%7D&f=true');
assert.equal(response.data.url, '/?sql=SELECT%20*%20from%20table&data=%E5%93%88%E5%93%88&b=&c=2222&d=1111&e=&f=true&g=a&g=b');
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

value 不能序列化的 key 都保留下来了。

Copy link
Member

@fengmk2 fengmk2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@fengmk2 fengmk2 merged commit ee9a786 into master Feb 20, 2024
20 checks passed
@fengmk2 fengmk2 deleted the fix/array_querystring branch February 20, 2024 09:59
fengmk2 pushed a commit that referenced this pull request Feb 20, 2024
[skip ci]

## [3.22.3](v3.22.2...v3.22.3) (2024-02-20)

### Bug Fixes

* use querystring to stringify data ([#489](#489)) ([ee9a786](ee9a786))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants