Fix test 00501_http_head

This commit is contained in:
proller 2017-09-06 18:19:03 +03:00
parent b370551e67
commit 7e46044474
2 changed files with 14 additions and 2 deletions

View File

@ -0,0 +1,12 @@
< HTTP/1.1 200 OK
< Connection: Keep-Alive
< Content-Type: text/tab-separated-values; charset=UTF-8
< Transfer-Encoding: chunked
< Keep-Alive: timeout=3
<
< HTTP/1.1 200 OK
< Connection: Keep-Alive
< Content-Type: text/tab-separated-values; charset=UTF-8
< Transfer-Encoding: chunked
< Keep-Alive: timeout=3
<

View File

@ -1,4 +1,4 @@
#!/usr/bin/env bash
curl -s --max-time 0.5 -X "HEAD" 'http://localhost:8123/?query=SELECT%201'
curl -s --max-time 0.5 -X "HEAD" 'http://localhost:8123/?query=select+*+from+system.numbers+limit+1000000'
( curl -v --max-time 0.3 -X "HEAD" 'http://localhost:18123/?query=SELECT%201';
curl -v --max-time 0.3 -X "HEAD" 'http://localhost:18123/?query=select+*+from+system.numbers+limit+1000000' ) 2>&1 | grep -e "^<" | grep -v "Date:"