Really two bugs: (1) mistakenly turning the HTTP method into a symbol; and (2)
calling encapsulate-uri with the wrong number of arguments.
(define parse-request-line
(*parser
- (seq (map string->symbol
- (match (+ (char-set char-set:http-token))))
+ (seq (match (+ (char-set char-set:http-token)))
" "
(alt (map intern (match "*"))
parse-absolute-uri
(define parse-simple-request
(*parser
- (seq (map string->symbol (match "GET"))
+ (seq (match "GET")
" "
parse-uri-path-absolute)))
(*parser
(encapsulate encapsulate-uri
(seq (values #f #f)
- parser:path-absolute))))
+ parser:path-absolute
+ (values #f #f)))))
\f
(define parser:uri
(*parser