Skip to content

Commit

Permalink
use the new trim
Browse files Browse the repository at this point in the history
  • Loading branch information
jneen committed Jan 12, 2011
1 parent 70ce9fd commit 8d25576
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/http.sh
Expand Up @@ -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
Expand Down

0 comments on commit 8d25576

Please sign in to comment.