Skip to content

Commit

Permalink
use faster integer parsing from cl-irregsexp
Browse files Browse the repository at this point in the history
  • Loading branch information
vii committed Jul 5, 2009
1 parent dd3ff9d commit a063062
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/http/encoding.lisp
Expand Up @@ -4,8 +4,8 @@
(declare (type byte-vector encoded))
(match-replace-all
encoded
((progn "%" (word (string 2)))
(byte-vector (byte-vector-parse-integer word 16)))
((progn "%" (val (unsigned-byte :max-len 2 :min-len 2 :base 16)))
(byte-vector val))
("+" " ")))

(defun percent-hexpair-encode (plain)
Expand Down

0 comments on commit a063062

Please sign in to comment.