Changeset 239 for trunk/lib/camping.rb

Show
Ignore:
Timestamp:
11/23/2007 06:52:56 (12 months ago)
Author:
zimbatm
Message:

Fixed EOL issues between HTTP header and body (I hope)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/camping.rb

    r237 r239  
    3535@cookies,@input=@k.dup,q.dup end;def service *a;@body=send @method,*a 
    3636headers['Set-Cookie']=cookies.map{|k,v|"#{k}=#{C.escape(v)}; path=#{self/ 
    37 "/"}"if v!=@k[k]}-[nil];self end;def to_s 
    38 "Status: #@status#{Z+headers.map{|k,v|[*v].map{|x|[k,v]*": "}}*Z+Z}#@body"end 
     37"/"}"if v!=@k[k]}-[nil];self end;def to_s;"Status: #@status#{Z+(headers.map{ 
     38|k,v|[*v].map{|x|[k,v]*": "}}*Z).gsub(Z*2,Z)+Z+Z}#@body"end 
    3939end;X=module Controllers;@r=[];class<<self;def r;@r end;def R *u;r=@r 
    4040Class.new{meta_def(:urls){u};meta_def(:inherited){|x|r<<x}}end