Permalink
Browse files

use the new trim

  • Loading branch information...
1 parent 70ce9fd commit 8d255769488456f40f3371ef0200ee3a1e442a72 @jneen committed Jan 12, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/http.sh
View
@@ -19,10 +19,10 @@ http::parse_request() {
local key
local val
while http::read HEADER_LINE; do
- trim "${HEADER_LINE%%*( ):*}"
- key="$trimmed"
- trim "${HEADER_LINE#*:*( )}"
- val="$trimmed"
+ key="${HEADER_LINE%%*( ):*}"
+ trim key
+ val="${HEADER_LINE#*:*( )}"
+ trim val
HEADERS["$key"]="$val"
done

0 comments on commit 8d25576

Please sign in to comment.