net: fix constness in http_request

Since we are taking a double pointer to an array owned by the user, we
should also make all but the top-level of indirection const, since we
are not planning on modifying it.

Signed-off-by: David van Rijn <david@refractor.dev>
This commit is contained in:
David van Rijn 2025-05-12 01:09:00 +02:00 committed by Anas Nashif
commit b1b586cac6

View file

@ -279,7 +279,7 @@ struct http_request {
* some header fields may remain constant through the application's
* life cycle. This is a NULL terminated list of header fields.
*/
const char **header_fields;
const char * const *header_fields;
/** The value of the Content-Type header field, may be NULL */
const char *content_type_value;