JetClient / jet-client-support

JetClient is an advanced REST API Client plugin for JetBrains IDEs
https://plugins.jetbrains.com/plugin/21173-jetclient
111 stars 0 forks source link

Automatically send Content-Length #56

Closed amadeusmz closed 8 months ago

amadeusmz commented 8 months ago

Is your feature request related to a problem?

Some requests requires length. When use Jetclient to call such requests, they'll return 411.

Describe the solution you'd like

Automatically send Content-Length like Postman or Jetbrains HTTP clients

Additional context

No response

AntonShuvaev commented 8 months ago

@amadeusmz Could you provide steps to reproduce? I checked with https://httpbin.org/anything and saw the Content-Length header is sent.

amadeusmz commented 8 months ago

@AntonShuvaev I see no Content-Length went sending requests with Jetclient, see image

idea64_KlnYYIMglT

AntonShuvaev commented 8 months ago

@amadeusmz, thank you for the details. I will implement the addition of the Content-Length: 0 header for requests with an empty body and for methods other than GET in the next update.

AntonShuvaev commented 8 months ago

Fixed in version 2024.1.5.