ruby-lsapi 1.12 → 1.13
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/lsapi/lsruby.c +4 -0
- metadata +2 -2
data/ext/lsapi/lsruby.c
CHANGED
@@ -603,6 +603,8 @@ static VALUE lsapi_gets( VALUE self )
|
|
603
603
|
rb_str_buf_cat( str, buff, len );
|
604
604
|
|
605
605
|
}
|
606
|
+
if (RSTRING(str)->len == 0)
|
607
|
+
return Qnil;
|
606
608
|
return str;
|
607
609
|
}
|
608
610
|
|
@@ -648,6 +650,8 @@ static VALUE lsapi_read(int argc, VALUE *argv, VALUE self)
|
|
648
650
|
break;
|
649
651
|
}
|
650
652
|
}
|
653
|
+
if (RSTRING(str)->len == 0)
|
654
|
+
return Qnil;
|
651
655
|
return str;
|
652
656
|
}
|
653
657
|
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
|
|
3
3
|
specification_version: 1
|
4
4
|
name: ruby-lsapi
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: "1.
|
7
|
-
date: 2007-01-
|
6
|
+
version: "1.13"
|
7
|
+
date: 2007-01-15 00:00:00 -05:00
|
8
8
|
summary: A ruby extension for fast communication with LiteSpeed Web Server.
|
9
9
|
require_paths:
|
10
10
|
- lib
|