summaryrefslogtreecommitdiff
path: root/file.h
diff options
context:
space:
mode:
authorcflip <cflip@cflip.net>2023-06-08 14:49:46 -0600
committercflip <cflip@cflip.net>2023-06-08 14:49:46 -0600
commit442cf41129d516188f52050c48f806b24450a3a3 (patch)
tree10ca8b9e08bd2d8ff60be68014ae3568b0f6c6b5 /file.h
parent8724eb379bcda51e7a9ecaaa6698a699ac042621 (diff)
Support POST requests for PHP scripts
This makes it possible to both read from and write to the standard I/O in php-cgi so that the request body can be written to its stdin and the script can access POST request data. Unfortunately, this isn't quite enough for the user login on the cflip forum to work, since cookies (and other HTTP headers) aren't passed to the script yet.
Diffstat (limited to 'file.h')
-rw-r--r--file.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.h b/file.h
index 3081244..9c48425 100644
--- a/file.h
+++ b/file.h
@@ -16,6 +16,6 @@ const char *file_path_for_uri(const char *);
enum serve_method file_method_for_path(const char *, enum http_res_code *);
int file_read(const char *, int);
-int file_read_php(const char *, const char *, int);
+int file_read_php(const char *, const struct http_request *, int);
#endif