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:
parent
a05506a256
commit
b1b586cac6
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue