Skip to content

fix(lib): use .form instead of .query when relevant and added Accept: application/json header #129

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

Merged
merged 5 commits into from
Feb 21, 2025

Conversation

okaerin
Copy link
Contributor

@okaerin okaerin commented Feb 18, 2025

Closes #128

Description

Change to use the form method instead of query

Check List (Check all the applicable boxes)

  • I understand that my contributions needs to pass the checks.
  • If I created new functions / methods, I documented them and add type hints.
  • If I modified already existing code, I updated the documentation accordingly.
  • The title of my pull request is a short description of the requested changes.

Screenshots

Note to reviewers

Copy link
Owner

@jeertmans jeertmans left a comment

Choose a reason for hiding this comment

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

Hi @okaerin, thanks for your PR!

In my opinion, it looks great! I only made one suggestion, see the comment from @ccoVeille.

Other than that, could you please edit the CHANGELOG.md file to include a section about this fix?

@jeertmans jeertmans changed the title Change url encoded text to form encoded text fix(lib): use .form instead of .query when relevant and added Accept: application/json header Feb 21, 2025
Copy link

codspeed-hq bot commented Feb 21, 2025

CodSpeed Performance Report

Merging #129 will improve performances by 24.95%

Comparing okaerin:form-encoded (2492fc8) with main (a217b40)

Summary

⚡ 6 improvements

Benchmarks breakdown

Benchmark BASE HEAD Change
large 109.1 ms 84 ms +29.85%
medium 108.7 ms 83.3 ms +30.54%
small 108.5 ms 83.5 ms +30%
large 126.4 ms 101.1 ms +24.95%
medium 112.9 ms 87.6 ms +28.88%
small 109.2 ms 83.8 ms +30.28%

@jeertmans
Copy link
Owner

Looks great, thanks @okaerin!

@jeertmans jeertmans merged commit 3dfcc9a into jeertmans:main Feb 21, 2025
1 check passed
@okaerin okaerin deleted the form-encoded branch February 21, 2025 11:30
jeertmans added a commit that referenced this pull request Mar 11, 2025
* fix(lib): use `.form` instead of `.query` when relevant and added `Accept: application/json` header (#129)

* fix query to form encoded payload

* change all requests to form encoded

* add accept header "application/json"

* revert /words to query encoded

* update changelog

* chore(ci): add cargo release functionality (#130)

* rename unrelease

* prepare next unreleased section

* add release process and changelog update

* add cargo release install cmd

* omit workspace

* fix(docs): release process doc (#133)

* fix doc

* update changelog

* apply review comments

- clarified purpose of cargo release
- simplified release preparation (removed parameters are in Cargo.toml)

* Update RELEASE-PROCESS.md

---------

Co-authored-by: Jérome Eertmans <jeertmans@icloud.com>

* Update CHANGELOG.md

* Update CHANGELOG.md

---------

Co-authored-by: Andreas Huber <43344129+okaerin@users.noreply.github.com>
Co-authored-by: Jérome Eertmans <jeertmans@icloud.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: text sent by url instead of form encoding
3 participants