compatiblity with 5.0 and 5.1

This commit is contained in:
Danny Yoo 2011-02-25 15:06:52 -05:00
parent fdab507586
commit c92b6d4c43

View File

@ -85,13 +85,20 @@ EOF
(list #"" (get-output-bytes op))))))
(define (ok-response)
(response/full 200 #"Okay"
(current-seconds)
TEXT/HTML-MIME-TYPE
empty
(list #"" #"<html><head></head><body><p>ok</p></body></html>")))
(define (handle-normal-response req)
(channel-put ch (list (extract-binding/single 'r (request-bindings req))
(string->number
(extract-binding/single 't (request-bindings req)))))
`(html (body (p "ok"))))
(ok-response))
(define (handle-error-response req)
@ -99,8 +106,7 @@ EOF
(extract-binding/single 'e (request-bindings req))
(string->number
(extract-binding/single 't (request-bindings req)))))
`(html (body (p "ok"))))
(ok-response))
(define (make-on-first-load-response)