aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/proto-def.h2
-rw-r--r--src/helper-api.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/proto-def.h b/include/proto-def.h
index ac4f21b9..df26ce1b 100644
--- a/include/proto-def.h
+++ b/include/proto-def.h
@@ -21,7 +21,7 @@
// helper-api
PUBLIC json_object* getPingTest(AFB_request *request);
-PUBLIC const char* getQueryValue (AFB_request * request, char *name);
+PUBLIC const char* getQueryValue (const AFB_request * request, const char *name);
PUBLIC int getQueryAll(AFB_request * request, char *query, size_t len);
PUBLIC AFB_PostHandle* getPostHandle (AFB_request *request);
PUBLIC json_object* getPostFile (AFB_request *request, AFB_PostItem *item, char* destination) ;
diff --git a/src/helper-api.c b/src/helper-api.c
index 77b013e3..5863e41d 100644
--- a/src/helper-api.c
+++ b/src/helper-api.c
@@ -57,7 +57,7 @@ PUBLIC json_object* getPingTest(AFB_request *request) {
// Helper to retrieve argument from connection
-PUBLIC const char* getQueryValue(AFB_request * request, char *name) {
+PUBLIC const char* getQueryValue(const AFB_request * request, const char *name) {
const char *value;
value = MHD_lookup_connection_value(request->connection, MHD_GET_ARGUMENT_KIND, name);