diff --git a/collects/net/head-unit.ss b/collects/net/head-unit.ss index 8a8b963..15f44eb 100644 --- a/collects/net/head-unit.ss +++ b/collects/net/head-unit.ss @@ -119,9 +119,7 @@ (let ([start (cdaddr m)] [field-name (substring header (caaddr (cdr m)) (cdaddr (cdr m)))]) (let ([m2 (regexp-match-positions - (format "[~a][~a][^: ~a~a]*:" - #\return #\linefeed - #\return #\linefeed) + #rx"\r\n[^: \r\n\"]*:" header start)]) (if m2