Fixing redirectget test

This commit is contained in:
Jay McCarthy 2010-09-16 13:42:34 -06:00
parent 3b95c7acd5
commit afcc7c818d

View File

@ -84,7 +84,9 @@
(define (call d u bs)
(htxml (collect d (make-request #"GET" (string->url u) empty (delay bs) #"" "127.0.0.1" 80 "127.0.0.1"))))
(define (htxml bs)
(match (regexp-match #"^.+\r\n\r\n(.+)$" bs)
(match (regexp-match #"^.+\r\n\r\n(.*)$" bs)
[(list _ #"")
""]
[(list _ s)
(string->xexpr (bytes->string/utf-8 s))]
[_