diff options
Diffstat (limited to 'sapi/thttpd/thttpd.c')
| -rw-r--r-- | sapi/thttpd/thttpd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sapi/thttpd/thttpd.c b/sapi/thttpd/thttpd.c index 16dcb09553..1bd532bbe2 100644 --- a/sapi/thttpd/thttpd.c +++ b/sapi/thttpd/thttpd.c @@ -451,6 +451,8 @@ static void thttpd_request_ctor(TSRMLS_D) smart_str_0(&s); SG(request_info).request_uri = s.c; SG(request_info).request_method = httpd_method_str(TG(hc)->method); + if (TG(hc)->one_one) SG(request_info).proto_num = 1001; + else SG(request_info).proto_num = 1000; SG(sapi_headers).http_response_code = 200; if (TG(hc)->contenttype) SG(request_info).content_type = strdup(TG(hc)->contenttype); |
