Changeset 242 for trunk/lib/camping.rb

Show
Ignore:
Timestamp:
03/11/2008 03:02:54 (4 months ago)
Author:
zimbatm
Message:

Yet another attempt to fix #147

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/camping.rb

    r240 r242  
    3636headers['Set-Cookie']=cookies.map{|k,v|"#{k}=#{C.escape(v)}; path=#{self/ 
    3737"/"}"if v!=@k[k]}-[nil];self end;def to_s;"Status: #@status#{Z+(headers.inject([ 
    38 ]){|a,o|[*o[1]].map{|x|a<<[o[0],v]*": "if v&&v.to_s.any?}}*Z)+Z+Z}#@body"end 
     38]){|a,o|[*o[1]].map{|v|a<<[o[0],v]*": "if v&&v.to_s.any?};a}*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