From: Dan Fandrich Date: Wed, 16 Aug 2023 16:03:53 +0000 (-0700) Subject: tests: don't call HTTP errors OK in test cases X-Git-Tag: curl-8_3_0~120 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=814dc4b24040cf2130206c4c754bac3055b79557;p=thirdparty%2Fcurl.git tests: don't call HTTP errors OK in test cases Some HTTP errors codes were accompanied by the text OK, which causes some cognitive dissonance when reading them. --- diff --git a/tests/data/test1328 b/tests/data/test1328 index a85c6b6eef..5055a07703 100644 --- a/tests/data/test1328 +++ b/tests/data/test1328 @@ -10,7 +10,7 @@ globbing -HTTP/1.1 404 OK +HTTP/1.1 404 NOT OK Date: Tue, 09 Nov 2010 14:49:00 GMT Content-Length: 6 Funny-head: yesyes diff --git a/tests/data/test197 b/tests/data/test197 index 70198732a6..3c5b8abff9 100644 --- a/tests/data/test197 +++ b/tests/data/test197 @@ -10,7 +10,7 @@ retry # Server-side -HTTP/1.1 503 OK swsbounce +HTTP/1.1 503 BAD swsbounce Date: Tue, 09 Nov 2010 14:49:00 GMT Content-Length: 21 @@ -58,7 +58,7 @@ Accept: */* -HTTP/1.1 503 OK swsbounce +HTTP/1.1 503 BAD swsbounce Date: Tue, 09 Nov 2010 14:49:00 GMT Content-Length: 21 diff --git a/tests/data/test357 b/tests/data/test357 index 4a7e6dc401..445000768c 100644 --- a/tests/data/test357 +++ b/tests/data/test357 @@ -10,7 +10,7 @@ Expect # 417 means the server didn't like the Expect header -HTTP/1.1 417 OK swsbounce +HTTP/1.1 417 BAD swsbounce Date: Tue, 09 Nov 2010 14:49:00 GMT Server: test-server/fake Content-Length: 0 @@ -25,7 +25,7 @@ Content-Length: 10 blablabla -HTTP/1.1 417 OK swsbounce +HTTP/1.1 417 BAD swsbounce Date: Tue, 09 Nov 2010 14:49:00 GMT Server: test-server/fake Content-Length: 0 diff --git a/tests/data/test366 b/tests/data/test366 index 748ef4a0de..46a4b502a8 100644 --- a/tests/data/test366 +++ b/tests/data/test366 @@ -10,7 +10,7 @@ retry # Server-side -HTTP/1.1 503 OK +HTTP/1.1 503 BAD Date: Tue, 09 Nov 2010 14:49:00 GMT Content-Length: 21 Retry-After: 200