mirror of
https://git.zx2c4.com/cgit
synced 2025-08-31 06:15:08 +00:00
Cleanup handling of environment variables
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
13
cgit.h
13
cgit.h
@@ -207,7 +207,20 @@ struct cgit_page {
|
||||
char *statusmsg;
|
||||
};
|
||||
|
||||
struct cgit_environment {
|
||||
char *cgit_config;
|
||||
char *http_host;
|
||||
char *https;
|
||||
char *path_info;
|
||||
char *query_string;
|
||||
char *request_method;
|
||||
char *script_name;
|
||||
char *server_name;
|
||||
char *server_port;
|
||||
};
|
||||
|
||||
struct cgit_context {
|
||||
struct cgit_environment env;
|
||||
struct cgit_query qry;
|
||||
struct cgit_config cfg;
|
||||
struct cgit_repo *repo;
|
||||
|
Reference in New Issue
Block a user