summaryrefslogtreecommitdiff
path: root/src/cgi.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/cgi.cc')
-rw-r--r--src/cgi.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/cgi.cc b/src/cgi.cc
index b2467f3..ff21541 100644
--- a/src/cgi.cc
+++ b/src/cgi.cc
@@ -63,6 +63,21 @@ public:
return path ? path : "";
}
+ std::string request_uri() override {
+ auto path = getparam("REQUEST_URI");
+ return path ? path : "";
+ }
+
+ std::string remote_addr() override {
+ auto path = getparam("REMOTE_ADDR");
+ return path ? path : "";
+ }
+
+ std::string http_auth() override {
+ auto auth = getparam("HTTP_AUTHORIZATION");
+ return auth ? auth : "";
+ }
+
std::string content_type() override {
auto ct = getparam("CONTENT_TYPE");
if (!ct) return "";