diff options
author | Eric Wong <e@80x24.org> | 2015-01-28 18:54:15 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-02-04 20:12:46 +0000 |
commit | 11810564cc4b6b8bfdc679f5a6384f4af6debe40 (patch) | |
tree | 02986f0f5a94985718d602c7ff53c8bf92da5b9d /ext/unicorn_http/unicorn_http.rl | |
parent | fd937863d67d5a886df2a53f1736d643fbb91e4a (diff) | |
download | unicorn-11810564cc4b6b8bfdc679f5a6384f4af6debe40.tar.gz |
This allows requiring just the C extension part of "unicorn_http", without requiring the rest of unicorn, allowing other HTTP servers using the same parser to be slimmer. On my x86-64 Debian 7.0 system: text data bss dec hex filename 44026 1976 488 46490 b59a lib/unicorn_http.so 43930 1976 456 46362 b51a lib/unicorn_http.so
Diffstat (limited to 'ext/unicorn_http/unicorn_http.rl')
-rw-r--r-- | ext/unicorn_http/unicorn_http.rl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/unicorn_http/unicorn_http.rl b/ext/unicorn_http/unicorn_http.rl index de83652..932d259 100644 --- a/ext/unicorn_http/unicorn_http.rl +++ b/ext/unicorn_http/unicorn_http.rl @@ -926,7 +926,7 @@ void Init_unicorn_http(void) { VALUE mUnicorn, cHttpParser; - mUnicorn = rb_const_get(rb_cObject, rb_intern("Unicorn")); + mUnicorn = rb_define_module("Unicorn"); cHttpParser = rb_define_class_under(mUnicorn, "HttpParser", rb_cObject); eHttpParserError = rb_define_class_under(mUnicorn, "HttpParserError", rb_eIOError); |