diff options
author | Valentin Bartenev <vbart@nginx.com> | 2018-05-21 16:14:24 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2018-05-21 16:14:24 +0300 |
commit | 3e8dbfe5ffdfbf525dd115508dc28d15bb81a237 (patch) | |
tree | 5f733eeaa090b0e8b14ac3de4d1a306a15628ed6 /src/ruby/nxt_ruby.c | |
parent | 8a156a9fc410eaf8898b757f294d91031e596a11 (diff) | |
download | unit-3e8dbfe5ffdfbf525dd115508dc28d15bb81a237.tar.gz unit-3e8dbfe5ffdfbf525dd115508dc28d15bb81a237.tar.bz2 |
Added SERVER_SOFTWARE request meta-variable.
Diffstat (limited to '')
-rw-r--r-- | src/ruby/nxt_ruby.c | 5 |
1 files changed, 5 insertions, 0 deletions
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)); |