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
@@ -30,7 +30,7 @@ end
30
30
 
31
31
  setup_extension("http11", "http11")
32
32
 
33
- version="0.3.7"
33
+ version="0.3.7.1"
34
34
  summary = "A small fast HTTP library and server that runs Rails, Camping, and Nitro apps."
35
35
  test_file = "test/test_ws.rb"
36
36
  author="Zed A. Shaw"
@@ -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">&nbsp;</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">&quot;:&quot;</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-keyword kw">if</span> <span class="ruby-identifier">port</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-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:
@@ -1 +1 @@
1
- Thu Mar 02 22:02:19 EST 2006
1
+ Fri Mar 03 01:16:20 EST 2006
@@ -56,7 +56,7 @@
56
56
  </tr>
57
57
  <tr class="top-aligned-row">
58
58
  <td><strong>Last Update:</strong></td>
59
- <td>Thu Mar 02 22:01:30 EST 2006</td>
59
+ <td>Fri Mar 03 01:16:06 EST 2006</td>
60
60
  </tr>
61
61
  </table>
62
62
  </div>
@@ -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 if 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-02 00:00:00 -05:00
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