Skip to content

Commit

Permalink
make the assoc easier to read
Browse files Browse the repository at this point in the history
elnode-http-header: clear up the assoc
  • Loading branch information
nicferrier committed Nov 17, 2014
1 parent 88ff426 commit 2b1ab9e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion elnode.el
Original file line number Diff line number Diff line change
Expand Up @@ -1329,7 +1329,9 @@ currently supported conversions are:
(hdr (if (symbolp key)
(elnode/con-get httpcon :elnode-http-header-syms)
(elnode/con-get httpcon :elnode-http-header)))
(val (cdr (assoc (if (stringp key) (downcase key) key) hdr))))
(val (cdr (assoc
(if (stringp key) (downcase key) key)
hdr))))
(elnode/case convert
(:time
(when val
Expand Down

0 comments on commit 2b1ab9e

Please sign in to comment.