Method: Mongrel::CGIWrapper#status
- Defined in:
- lib/mongrel/cgi.rb
#status ⇒ Object
Computes the status once, but lazily so that people who call header twice don’t get penalized. Because CGI insists on including the options status message in the status we have to do a bit of parsing.
148 149 150 151 152 153 154 155 156 157 |
# File 'lib/mongrel/cgi.rb', line 148 def status if not @status stat = @head["Status"] stat = stat.split(' ')[0] if stat @status = stat || "200" end @status end |