about summary refs log tree commit homepage
path: root/ext/unicorn_http/global_variables.h
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-09-02 23:49:05 -0700
committerEric Wong <normalperson@yhbt.net>2009-09-02 23:49:05 -0700
commitbd0599c4ac91d95cae1f34df3ae99c92f3225391 (patch)
tree869c29ea8bc00ada5b38813af1f32607b6bfd967 /ext/unicorn_http/global_variables.h
parente75de4b28b19e9ac79083bba4b55bcb4c93b207d (diff)
downloadunicorn-bd0599c4ac91d95cae1f34df3ae99c92f3225391.tar.gz
And it'll default to HTTP/0.9 if HTTP_VERSION is not specified
(as version-less HTTP requests imply HTTP/0.9.
Diffstat (limited to 'ext/unicorn_http/global_variables.h')
-rw-r--r--ext/unicorn_http/global_variables.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/unicorn_http/global_variables.h b/ext/unicorn_http/global_variables.h
index 14aa77a..e593cf6 100644
--- a/ext/unicorn_http/global_variables.h
+++ b/ext/unicorn_http/global_variables.h
@@ -25,6 +25,8 @@ static VALUE g_port_80;
 static VALUE g_port_443;
 static VALUE g_localhost;
 static VALUE g_http;
+static VALUE g_http_09;
+static VALUE g_http_10;
 static VALUE g_http_11;
 static VALUE g_GET;
 static VALUE g_HEAD;
@@ -78,6 +80,8 @@ void init_globals(void)
   DEF_GLOBAL(localhost, "localhost");
   DEF_GLOBAL(http, "http");
   DEF_GLOBAL(http_11, "HTTP/1.1");
+  DEF_GLOBAL(http_10, "HTTP/1.0");
+  DEF_GLOBAL(http_09, "HTTP/0.9");
   DEF_GLOBAL(GET, "GET");
   DEF_GLOBAL(HEAD, "HEAD");
 }