diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-04-21 11:14:42 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-04-21 11:16:25 -0700 |
commit | 78c076ebb118a8312a2912dddb8a93d3ea80fa99 (patch) | |
tree | 708cd4175f92b26e636490d0474abaf088a02ff9 /ext/unicorn/http11 | |
parent | aca95eb1157eff8351320c4b2f5daa904330e904 (diff) | |
download | unicorn-78c076ebb118a8312a2912dddb8a93d3ea80fa99.tar.gz |
Diffstat (limited to 'ext/unicorn/http11')
-rw-r--r-- | ext/unicorn/http11/http11.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/unicorn/http11/http11.c b/ext/unicorn/http11/http11.c index 42dcf99..fbe2432 100644 --- a/ext/unicorn/http11/http11.c +++ b/ext/unicorn/http11/http11.c @@ -262,6 +262,10 @@ static void header_done(void *data, const char *at, size_t length) VALUE server_port = global_port_80; VALUE temp; + /* rack requires QUERY_STRING */ + if (rb_hash_aref(req, global_query_string) == Qnil) + rb_hash_aset(req, global_query_string, rb_str_new(NULL, 0)); + /* set rack.url_scheme to "https" or "http", no others are allowed by Rack */ if ((temp = rb_hash_aref(req, global_http_x_forwarded_proto)) != Qnil && RSTRING_LEN(temp) == 5 && |