diff --git a/src/action.c b/src/action.c index 48c2467..0925abb 100755 --- a/src/action.c +++ b/src/action.c @@ -48,7 +48,7 @@ err: return -1; } -bool handle_action_request(struct uh_client *cl, char *path) +bool handle_action_request(struct uh_client *cl, const char *path) { struct uh_action *a; diff --git a/src/action.h b/src/action.h index a45ef3e..7556e51 100755 --- a/src/action.h +++ b/src/action.h @@ -34,7 +34,7 @@ struct uh_action { int uh_add_action(struct uh_server *srv, const char *path, action_cb_t cb); -bool handle_action_request(struct uh_client *cl, char *url); +bool handle_action_request(struct uh_client *cl, const char *path); void uh_action_free(struct uh_server *srv); diff --git a/src/file.c b/src/file.c index b09ee5e..feaf890 100755 --- a/src/file.c +++ b/src/file.c @@ -394,7 +394,7 @@ error: cl->send_error(cl, 403, "Forbidden", "You don't have permission to access %s on this server.", path); } -bool handle_file_request(struct uh_client *cl, char *path) +bool handle_file_request(struct uh_client *cl, const char *path) { struct path_info *pi; diff --git a/src/file.h b/src/file.h index a272872..3040b21 100755 --- a/src/file.h +++ b/src/file.h @@ -34,6 +34,6 @@ struct mimetype { const char *mime; }; -bool handle_file_request(struct uh_client *cl, char *url); +bool handle_file_request(struct uh_client *cl, const char *path); #endif \ No newline at end of file