ruby-lsapi 2.4 → 2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/ext/lsapi/lsapilib.c +23 -1
  2. data/ext/lsapi/lsruby.c +3 -2
  3. metadata +2 -2
data/ext/lsapi/lsapilib.c CHANGED
@@ -101,7 +101,29 @@ static const char *CGI_HEADERS[H_TRANSFER_ENCODING+1] =
101
101
  static int CGI_HEADER_LEN[H_TRANSFER_ENCODING+1] =
102
102
  { 11, 19, 20, 20, 18, 15, 12, 14, 11, 12, 9, 11, 12, 15, 18,
103
103
  22, 13, 18, 13, 24, 14, 10, 20, 8, 22 };
104
-
104
+ /*
105
+ static const char *HTTP_HEADERS[H_TRANSFER_ENCODING+1] =
106
+ {
107
+ "Accept", "Accept-Charset",
108
+ "Accept-Encoding",
109
+ "Accept-Language", "Authorization",
110
+ "Connection", "Content-Type",
111
+ "Content-Length", "Cookie", "Cookie2",
112
+ "Host", "Pragma",
113
+ "Referer", "User-Agent",
114
+ "Cache-Control",
115
+ "If-Modified-Since", "If-Match",
116
+ "If-None-Match",
117
+ "If-Range",
118
+ "If-Unmodified-Since",
119
+ "Keepalive",
120
+ "Range",
121
+ "X-Forwarded-For",
122
+ "Via",
123
+ "Transfer-Encoding"
124
+ };
125
+ */
126
+
105
127
  static void lsapi_sigpipe( int sig )
106
128
  {
107
129
  }
data/ext/lsapi/lsruby.c CHANGED
@@ -102,8 +102,9 @@ static int add_env_rails( const char * pKey, int keyLen, const char * pValue, in
102
102
  if ( p )
103
103
  {
104
104
  len = valLen - ( p - pValue ) - 1;
105
- valLen = p - pValue;
106
- *p++ = 0;
105
+ //valLen = p - pValue;
106
+ //*p++ = 0;
107
+ ++p;
107
108
  }
108
109
  else
109
110
  {
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: "2.4"
7
- date: 2007-04-24 00:00:00 -04:00
6
+ version: "2.5"
7
+ date: 2007-05-18 00:00:00 -04:00
8
8
  summary: A ruby extension for fast communication with LiteSpeed Web Server.
9
9
  require_paths:
10
10
  - lib