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

feat: Automatically insert Content-Length header to POST requests #334

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ycd
Copy link

@ycd ycd commented Dec 8, 2021

Automatically set the Content-Length header to POST requests. This introduces changes to following functions:

  • body_json
  • body_string
  • body_form
  • body_file
  • body_bytes

Resolves: #324

Signed-off-by: Yagiz Degirmenci yagizcanilbey1903@gmail.com

Signed-off-by: Yagiz Degirmenci <yagizcanilbey1903@gmail.com>
Automatically insert the Content-Length header when body_string, body_form, body_file and body_bytes is called

Signed-off-by: Yagiz Degirmenci <yagizcanilbey1903@gmail.com>
@ycd ycd changed the title feat: automatically insert content-length header with body_json function feat: Automatically insert Content-Length header to POST requests Dec 8, 2021
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.

body_json should set content-length header
1 participant