ktor icon indicating copy to clipboard operation
ktor copied to clipboard

Prioritize explicit headers

Open gimlet2 opened this issue 6 months ago • 3 comments

Subsystem Client common engine

Motivation I've had an issue sending HTTP request with form data. A server was rejecting the request based on content-type. It was expecting application/x-www-form-urlencoded but FormDataContent adds also an encoding.

Solution Explicitly provided headers should have higher priority then calculated.

gimlet2 avatar Aug 12 '24 20:08 gimlet2