Skip to content

Commit

Permalink
Less verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Jun 5, 2018
1 parent 735b28c commit 8fa7ef0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bashttpd
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ flush_response() {
local buf
while true; do
local buf="$(read_bytes "${#CONTROL_SEQUENCE}")"
recv "buf: $(printf "%x " "'${buf}") ${#buf}"
#recv "buf: $(printf "%x " "'${buf}") ${#buf}"
if [ "${buf}" = "${CONTROL_SEQUENCE}" ]; then
IFS='' read -r line
line=${line%%$'\r'}
Expand Down Expand Up @@ -348,7 +348,7 @@ get_request_body() {
if [ "${encoding}" = "chunked" ]; then
while IFS='' read -r line; do
line=${line%%$'\r'}
recv "$line"
#recv "$line"

length="$(printf "%d" "0x${line%%$'\n'}")"
recv "Reading ${length} byte chunk"
Expand Down

0 comments on commit 8fa7ef0

Please sign in to comment.