ry / ebb fork watch download tarball
public
Description: web server
Homepage: http://ebb.rubyforge.org
Clone URL: git://github.com/ry/ebb.git
Search Repo:
fix tests to use 'CONTENT_TYPE' instead 'HTTP_CONTENT_TYPE'
ryah (author)
Sat Mar 29 09:57:55 -0700 2008
commit  3c8fdda73cd2e571c3395c425737e439c1a8bf99
tree    a5ae8a6e2bd3f7be68aeaebbd2e3824ad3d5b58e
parent  c124a82348ab9278d4e48408033fc88fcbe3209e
...
53
54
55
56
 
57
58
59
60
61
 
62
63
64
...
53
54
55
 
56
57
58
59
60
 
61
62
63
64
0
@@ -53,12 +53,12 @@
0
       while chunk = env['rack.input'].read(512)
0
         input_body << chunk
0
       end
0
- if env['HTTP_CONTENT_LENGTH'].to_i == input_body.length
0
+ if env['CONTENT_LENGTH'].to_i == input_body.length
0
         body = "Content-Length matches input length"
0
         status = 200
0
       else
0
         body = "Content-Length doesn't matches input length!
0
- content_length = #{env['HTTP_CONTENT_LENGTH'].to_i}
0
+ content_length = #{env['CONTENT_LENGTH'].to_i}
0
           input_body.length = #{input_body.length}"
0
         status = 500
0
       end
...
25
26
27
28
 
29
30
31
...
25
26
27
 
28
29
30
31
0
@@ -25,7 +25,7 @@
0
     elsif commands.include?('test_post_length')
0
       input_body = env['rack.input'].read
0
       
0
- content_length_header = env['HTTP_CONTENT_LENGTH'].to_i
0
+ content_length_header = env['CONTENT_LENGTH'].to_i
0
       
0
       if content_length_header == input_body.length
0
         body = "Content-Length matches input length"

Comments

    No one has commented yet.