mongrel 0.3.7 → 0.3.7.1
Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile
CHANGED
@@ -290,7 +290,7 @@ href="../Mongrel.html">Mongrel</a> man).
|
|
290
290
|
<tr class="top-aligned-row context-row">
|
291
291
|
<td class="context-item-name">MONGREL_VERSION</td>
|
292
292
|
<td>=</td>
|
293
|
-
<td class="context-item-value">'Mongrel 0.3.7'</td>
|
293
|
+
<td class="context-item-value">'Mongrel 0.3.7.1'</td>
|
294
294
|
<td width="3em"> </td>
|
295
295
|
<td class="context-item-desc">
|
296
296
|
Current <a href="../Mongrel.html">Mongrel</a> version (used for
|
@@ -23,7 +23,7 @@
|
|
23
23
|
182: <span class="ruby-identifier">params</span>[<span class="ruby-constant">Const</span><span class="ruby-operator">::</span><span class="ruby-constant">REMOTE_ADDR</span>]=<span class="ruby-identifier">socket</span>.<span class="ruby-identifier">peeraddr</span>[<span class="ruby-value">3</span>]
|
24
24
|
183: <span class="ruby-identifier">host</span>,<span class="ruby-identifier">port</span> = <span class="ruby-identifier">params</span>[<span class="ruby-constant">Const</span><span class="ruby-operator">::</span><span class="ruby-constant">HTTP_HOST</span>].<span class="ruby-identifier">split</span>(<span class="ruby-value str">":"</span>)
|
25
25
|
184: <span class="ruby-identifier">params</span>[<span class="ruby-constant">Const</span><span class="ruby-operator">::</span><span class="ruby-constant">SERVER_NAME</span>]=<span class="ruby-identifier">host</span>
|
26
|
-
185: <span class="ruby-identifier">params</span>[<span class="ruby-constant">Const</span><span class="ruby-operator">::</span><span class="ruby-constant">SERVER_PORT</span>]=<span class="ruby-identifier">port</span> <span class="ruby-
|
26
|
+
185: <span class="ruby-identifier">params</span>[<span class="ruby-constant">Const</span><span class="ruby-operator">::</span><span class="ruby-constant">SERVER_PORT</span>]=<span class="ruby-identifier">port</span> <span class="ruby-operator">||</span> <span class="ruby-value">80</span>
|
27
27
|
186: <span class="ruby-identifier">params</span>[<span class="ruby-constant">Const</span><span class="ruby-operator">::</span><span class="ruby-constant">SERVER_PROTOCOL</span>]=<span class="ruby-constant">Const</span><span class="ruby-operator">::</span><span class="ruby-constant">SERVER_PROTOCOL_VALUE</span>
|
28
28
|
187: <span class="ruby-identifier">params</span>[<span class="ruby-constant">Const</span><span class="ruby-operator">::</span><span class="ruby-constant">SERVER_SOFTWARE</span>]=<span class="ruby-constant">Const</span><span class="ruby-operator">::</span><span class="ruby-constant">MONGREL_VERSION</span>
|
29
29
|
188:
|
data/doc/rdoc/created.rid
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
Fri Mar 03 01:16:20 EST 2006
|
data/lib/mongrel.rb
CHANGED
@@ -140,7 +140,7 @@ module Mongrel
|
|
140
140
|
SERVER_SOFTWARE='SERVER_SOFTWARE'
|
141
141
|
|
142
142
|
# Current Mongrel version (used for SERVER_SOFTWARE and other response headers).
|
143
|
-
MONGREL_VERSION='Mongrel 0.3.7'
|
143
|
+
MONGREL_VERSION='Mongrel 0.3.7.1'
|
144
144
|
|
145
145
|
# The standard empty 404 response for bad requests. Use Error4040Handler for custom stuff.
|
146
146
|
ERROR_404_RESPONSE="HTTP/1.1 404 Not Found\r\nConnection: close\r\nServer: #{MONGREL_VERSION}\r\n\r\nNOT FOUND"
|
@@ -182,7 +182,7 @@ module Mongrel
|
|
182
182
|
params[Const::REMOTE_ADDR]=socket.peeraddr[3]
|
183
183
|
host,port = params[Const::HTTP_HOST].split(":")
|
184
184
|
params[Const::SERVER_NAME]=host
|
185
|
-
params[Const::SERVER_PORT]=port
|
185
|
+
params[Const::SERVER_PORT]=port || 80
|
186
186
|
params[Const::SERVER_PROTOCOL]=Const::SERVER_PROTOCOL_VALUE
|
187
187
|
params[Const::SERVER_SOFTWARE]=Const::MONGREL_VERSION
|
188
188
|
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
|
|
3
3
|
specification_version: 1
|
4
4
|
name: mongrel
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.3.7
|
7
|
-
date: 2006-03-
|
6
|
+
version: 0.3.7.1
|
7
|
+
date: 2006-03-03 00:00:00 -05:00
|
8
8
|
summary: A small fast HTTP library and server that runs Rails, Camping, and Nitro apps.
|
9
9
|
require_paths:
|
10
10
|
- lib
|