Changeset 242 for trunk/lib/camping-unabridged.rb
- Timestamp:
- 03/11/2008 03:02:54 (8 months ago)
- Files:
-
- 1 modified
-
trunk/lib/camping-unabridged.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/camping-unabridged.rb
r240 r242 462 462 # alter the way Camping builds HTTP headers, consider overriding this method. 463 463 def to_s 464 "Status: #@status#{Z+(headers.inject([]){|a,o|[*o[1]].map{| x|a<<[o[0],v]*": "if v&&v.to_s.any?}}*Z)+Z+Z}#@body"464 "Status: #@status#{Z+(headers.inject([]){|a,o|[*o[1]].map{|v|a<<[o[0],v]*": "if v&&v.to_s.any?};a}*Z)+Z+Z}#@body" 465 465 end 466 466
