commit 1907cc2b1b72a0c5e79ed9f3314e686404cab5ae
parent 36cf2f2d2a40f4fea9fb6a910b7ab48a5dae9ce6
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Sat, 16 Apr 2022 14:56:42 +0300
MHD_Connection: added 'const' qualifiers to some unmodifiable members
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h
@@ -999,7 +999,7 @@ struct MHD_Connection
/**
* Request method. Should be GET/POST/etc. Allocated in pool.
*/
- char *method;
+ const char *method;
/**
* The request method as enum.
@@ -1016,7 +1016,7 @@ struct MHD_Connection
* HTTP version string (i.e. http/1.1). Allocated
* in pool.
*/
- char *version;
+ const char *version;
/**
* HTTP protocol version as enum.