Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use the new trim

  • Loading branch information...
commit 8d255769488456f40f3371ef0200ee3a1e442a72 1 parent 70ce9fd
@jneen authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/http.sh
View
8 lib/http.sh
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.