Skip to content

Commit b1b586c

Browse files
unsandednashif
authored andcommitted
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>
1 parent a05506a commit b1b586c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/zephyr/net/http/client.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ struct http_request {
279279
* some header fields may remain constant through the application's
280280
* life cycle. This is a NULL terminated list of header fields.
281281
*/
282-
const char **header_fields;
282+
const char * const *header_fields;
283283

284284
/** The value of the Content-Type header field, may be NULL */
285285
const char *content_type_value;

0 commit comments

Comments
 (0)