Don't set Content-Type header with an empty request body #11

Merged
Ghost merged 1 commit from refs/pull/11/head into master 2024-04-03 16:06:39 +02:00
Ghost commented 2024-04-03 16:06:30 +02:00 (Migrated from codeberg.org)

A Content-Type header should only be set if a request body has been set. Including this header without a valid JSON-request body will tell Reflect to attempt a decode of the request body, which will fail if no body is provided.

A `Content-Type` header should only be set if a request body has been set. Including this header without a valid JSON-request body will tell Reflect to attempt a decode of the request body, which will fail if no body is provided.
Sign in to join this conversation.
No description provided.