mirror of https://github.com/omar-polo/gmid.git
update tests
* we don't add a space before the lang anymore * we're more strict in CGI handling: the `invalid' CGI script now triggers a 42 CGI ERROR
This commit is contained in:
parent
fa0299a26d
commit
827cc37cff
|
@ -178,7 +178,7 @@ config '' 'lang "it"'
|
|||
checkconf
|
||||
restart
|
||||
|
||||
eq "$(head /)" "20 text/gemini; lang=it" "Unexpected head for /"
|
||||
eq "$(head /)" "20 text/gemini;lang=it" "Unexpected head for /"
|
||||
echo OK GET / with custom lang
|
||||
|
||||
check "should be running"
|
||||
|
@ -206,8 +206,8 @@ eq "$(head /err)" "42 CGI error" "Unexpected head for /err"
|
|||
eq "$(get /err)" "" "Unexpected body for /err"
|
||||
echo OK GET /err with cgi
|
||||
|
||||
eq "$(raw /invalid | wc -c | xargs)" 2048 "Unexpected body for /invalid"
|
||||
echo OK GET /invalid with cgi
|
||||
#eq "$(raw /invalid | wc -c | xargs)" 2048 "Unexpected body for /invalid"
|
||||
#echo OK GET /invalid with cgi
|
||||
|
||||
eq "$(raw /max-length-reply | wc -c | xargs)" 1029 "Unexpected header for /max-length-reply"
|
||||
echo OK GET /max-length-reply with cgi
|
||||
|
|
Loading…
Reference in New Issue