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

Set ContentLength to 0 when Body is nil #698

Merged
merged 3 commits into from
Sep 22, 2023
Merged

Commits on Sep 21, 2023

  1. Update middleware.go

    Set ContentLength=0 when body is `nil` and `setContentLength` is true
    praem90 committed Sep 21, 2023
    Configuration menu
    Copy the full SHA
    ec458b7 View commit details
    Browse the repository at this point in the history
  2. Update client_test.go

    Add a test case for ContentLength when body is nil
    praem90 committed Sep 21, 2023
    Configuration menu
    Copy the full SHA
    85e011e View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2023

  1. Update middleware.go

    Refactor if block for better readability
    praem90 committed Sep 22, 2023
    Configuration menu
    Copy the full SHA
    ec85026 View commit details
    Browse the repository at this point in the history