about summary refs log tree commit homepage
path: root/t/t0019-max_header_len.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/t0019-max_header_len.sh')
-rwxr-xr-xt/t0019-max_header_len.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t0019-max_header_len.sh b/t/t0019-max_header_len.sh
index 5ce1c69..6a355b4 100755
--- a/t/t0019-max_header_len.sh
+++ b/t/t0019-max_header_len.sh
@@ -5,7 +5,7 @@ t_plan 5 "max_header_len setting (only intended for Rainbows!)"
 t_begin "setup and start" && {
         unicorn_setup
         req='GET / HTTP/1.0\r\n\r\n'
-        len=$(printf "$req" | wc -c)
+        len=$(printf "$req" | count_bytes)
         echo Unicorn::HttpParser.max_header_len = $len >> $unicorn_config
         unicorn -D -c $unicorn_config env.ru
         unicorn_wait_start