diff --git a/collects/net/url-unit.ss b/collects/net/url-unit.ss index 97122c1..7fa1055 100644 --- a/collects/net/url-unit.ss +++ b/collects/net/url-unit.ss @@ -403,7 +403,7 @@ ;; purify-port : in-port -> header-string (define purify-port (lambda (port) - (let ([m (regexp-match-peek-positions #rx"^HTTP/.*?((\r\n)|\n)((\r\n)|\n)" port)]) + (let ([m (regexp-match-peek-positions #rx"^HTTP/.*?((\r\n)|\n|\r)((\r\n)|\n|\r)" port)]) (if m (read-string (cdar m) port) ""))))