public
Fork of macournoyer/thin
Description: A very fast & simple Ruby web server
Homepage: http://code.macournoyer.com/thin/
Clone URL: git://github.com/bmizerany/thin.git
Doc fix and update README
macournoyer (author)
Sat Jan 19 19:03:18 -0800 2008
commit  766890e0b31548f074758f87f22e84b5239c1aa7
tree    4fbb36d0d8275b6f289437928f014b71009e6f8e
parent  54a99f93b1e5c45ea33a515b96919ad8f21ccbe4
0
...
13
14
15
16
 
17
18
19
20
21
22
 
23
24
25
...
36
37
38
39
 
 
 
 
 
 
 
 
40
41
42
...
56
57
58
59
60
61
 
 
 
62
...
13
14
15
 
16
17
18
19
20
21
 
22
23
24
25
...
36
37
38
 
39
40
41
42
43
44
45
46
47
48
49
...
63
64
65
 
 
66
67
68
69
70
0
@@ -13,13 +13,13 @@ For the latest stable version:
0
 
0
  sudo gem install thin
0
 
0
-or using my mirror (might be more recent):
0
+or using my mirror (might be more recent and unstable):
0
 
0
  sudo gem install thin --source http://code.macournoyer.com
0
 
0
 Or from source:
0
 
0
- git clone git://repo.or.cz/thin.git
0
+ git clone git://github.com/macournoyer/thin.git
0
  cd thin
0
  rake install
0
 
0
@@ -36,7 +36,14 @@ You need to setup a config.ru file and require thin in it:
0
  require 'thin'
0
  
0
  app = proc do |env|
0
- [200, {'Content-Type'=>'text/html'}, ['hi']]
0
+ [
0
+ 200,
0
+ {
0
+ 'Content-Type' => 'text/html',
0
+ 'Content-Length' => '2'
0
+ },
0
+ ['hi']
0
+ ]
0
  end
0
  
0
  run app
0
@@ -56,5 +63,6 @@ either the terms of the GPL.
0
 
0
 Thin is copyright Marc-Andre Cournoyer <macournoyer@gmail.com>
0
 
0
-Please report any bug at http://groups.google.com/group/thin-ruby/
0
-and major security issues directly to me at macournoyer@gmail.com.
0
\ No newline at end of file
0
+Get help at http://groups.google.com/group/thin-ruby/
0
+Report bugs at http://thin.lighthouseapp.com/projects/7212-thin
0
+and major security issues directly to a team member (see COMMITTERS)
0
\ No newline at end of file
...
46
47
48
49
 
50
51
52
...
46
47
48
 
49
50
51
52
0
@@ -46,7 +46,7 @@ module Thin
0
     end
0
     
0
     # Yields each chunk of the response.
0
- # To controler the size of the chunks sent to the client
0
+ # To control the size of each chunk
0
     # define your own +each+ method on +body+.
0
     def each
0
       yield head
...
116
117
118
119
 
 
 
 
 
 
 
 
120
121
122
...
116
117
118
 
119
120
121
122
123
124
125
126
127
128
129
0
@@ -116,7 +116,14 @@ class Thin < Atchoum::Website
0
       require 'thin'
0
       
0
       app = proc do |env|
0
- [200, {'Content-Type' => 'text/html'}, ['hi']]
0
+ [
0
+ 200,
0
+ {
0
+ 'Content-Type' => 'text/html',
0
+ 'Content-Length' => '2',
0
+ },
0
+ ['hi']
0
+ ]
0
       end
0
       
0
       run app

Comments

    No one has commented yet.