From 3e8dbfe5ffdfbf525dd115508dc28d15bb81a237 Mon Sep 17 00:00:00 2001 From: Valentin Bartenev Date: Mon, 21 May 2018 16:14:24 +0300 Subject: Added SERVER_SOFTWARE request meta-variable. --- src/ruby/nxt_ruby.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/ruby/nxt_ruby.c') diff --git a/src/ruby/nxt_ruby.c b/src/ruby/nxt_ruby.c index 6785d031..230c5b98 100644 --- a/src/ruby/nxt_ruby.c +++ b/src/ruby/nxt_ruby.c @@ -272,6 +272,11 @@ nxt_ruby_rack_env_create(VALUE arg) VALUE hash_env, version; hash_env = rb_hash_new(); + + rb_hash_aset(hash_env, rb_str_new2("SERVER_SOFTWARE"), + rb_str_new((const char *) nxt_server.start, + (long) nxt_server.length)); + version = rb_ary_new(); rb_ary_push(version, UINT2NUM(NXT_RUBY_RACK_API_VERSION_MAJOR)); -- cgit