Skip to content
Commit f18674a3 authored by Michael Scott's avatar Michael Scott Committed by Jukka Rissanen
Browse files

net: http: fix http client request "Host" header



RFC-7230 "HTTP/1.1 Message Syntax and Routing" Section 5.4
describes the "Host" header formatting.  If Zephyr user
specifies a host string as a part of the HTTP client request
structure, we end up sending an incorrect HTTP header due
to a missing "Host :" text.

Fix this by prepending "Host: " to the header data before
the user supplied host string.

Signed-off-by: default avatarMichael Scott <michael.scott@linaro.org>
parent bd9a1548
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment