Skip to content

Commit

Permalink
Convert sequential spaces in the header value to a single space.
Browse files Browse the repository at this point in the history
  • Loading branch information
bakketun committed Jun 19, 2018
1 parent 70b4fb8 commit 386a5e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions aws-sign4.asd
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
:author "Thomas Bakketun <thomas.bakketun@copyleft.no>"
:description "A library for Amazon Web Services signing version 4"
:depends-on (:local-time
:cl-ppcre
:ironclad
:split-sequence
:flexi-streams
Expand Down
2 changes: 1 addition & 1 deletion aws-sign4.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ parameter ESCAPE% is NIL, the % is not escaped."
#'string<)))

(defun trimall (string)
(string-trim '(#\Space #\Tab) string))
(cl-ppcre:regex-replace-all "^\\s+|(?<=\\s)\\s+|\\s+$" string ""))

(defun merge-duplicate-headers (headers)
(loop for header = (pop headers)
Expand Down

0 comments on commit 386a5e3

Please sign in to comment.