Class: ForgetPasswords::FastCGI
- Inherits:
-
Rack::Handler::FastCGI
- Object
- Rack::Handler::FastCGI
- ForgetPasswords::FastCGI
- Defined in:
- lib/forget-passwords/fastcgi.rb
Overview
XXX this unfortunate chunk of code exists because of bz.apache.org/bugzilla/show_bug.cgi?id=65984
Class Method Summary collapse
Class Method Details
.send_body(out, body) ⇒ Object
20 21 22 23 24 |
# File 'lib/forget-passwords/fastcgi.rb', line 20 def self.send_body(out, body) body.each { |part| out.print part } # this one we keep and put it outside the loop out.flush end |
.send_headers(out, status, headers) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/forget-passwords/fastcgi.rb', line 10 def self.send_headers(out, status, headers) out.print "Status: #{status}\r\n" headers.each do |k, vs| vs.split("\n").each { |v| out.print "#{k}: #{v}\r\n" } end out.print "\r\n" # we remove out.flush from the headers # out.flush end |