diff options
Diffstat (limited to 'src/tipideed/cgi.c')
-rw-r--r-- | src/tipideed/cgi.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tipideed/cgi.c b/src/tipideed/cgi.c index a875acd..9cd395d 100644 --- a/src/tipideed/cgi.c +++ b/src/tipideed/cgi.c @@ -66,6 +66,11 @@ static inline void modify_env (tipidee_rql const *rql, tipidee_headers const *hd else delenv(rql, "QUERY_STRING") ; addenv(rql, "SCRIPT_NAME", script) ; addenv(rql, "SERVER_NAME", rql->uri.host) ; + { + char proto[9] = "HTTP/1.1" ; + if (!rql->http_minor) proto[7] = '0' ; + addenv(rql, "SERVER_PROTOCOL", proto) ; + } for (size_t i = 0 ; i < hdr->n ; i++) { |