We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
curl
1 parent 89c541a commit 48e1cdbCopy full SHA for 48e1cdb
1 file changed
tests.sh
@@ -225,7 +225,7 @@ fi
225
message " Make request with a header exceeding limit."
226
LARGE_HEADER_VALUE=$(head -c 5000 </dev/urandom | base64 | tr -d '\n')
227
# Do with curl -v and look for "HTTP/1.1 431 Request Header Fields Too Large" output
228
-REQUEST=$(curl -v -k -H "Large-Header: $LARGE_HEADER_VALUE" https://localhost:8443/ 2>&1)
+REQUEST=$(curl -v -k -H "Large-Header: $LARGE_HEADER_VALUE" https://localhost:8443/ 2>&1 || true)
229
if echo "$REQUEST" | grep -q "HTTP/1.1 431 Request Header Fields Too Large"; then
230
passed "Large header test resulted in HTTP 431."
231
else
0 commit comments