Hi Petter,

On 24.10.24 07:04, Petter Reinholdtsen wrote:
is broken as the expect type is missing. The correct command for this example
should look like this:

        _EXPECT header "/foo"
Do you mean a change like this:

diff --git a/src/httest.ext b/src/httest.ext
index a75943d..ec0664c 100644
--- a/src/httest.ext
+++ b/src/httest.ext
@@ -53,7 +53,7 @@ END
SERVER 8080
  _RES
-_EXPECT "/foo"
+_EXPECT header "/foo"
  _WAIT
  __HTTP/1.1 200 OK
  __Content-Length: AUTO
@@ -75,7 +75,7 @@ END
SERVER SSL:8080
  _RES
-_EXPECT "/foo"
+_EXPECT header "/foo"
  _WAIT
  __HTTP/1.1 200 OK
  __Content-Length: AUTO

A block earlier in the text uses '_EXPECT headers' with the plural
form, which make me unsure what the correct approach would be.

Yes, that is what I wanted to suggest back then. But you're right as well. According to the wiki on (https://sourceforge.net/p/htt/wiki/Home/) it ought to be the plural form, not singular. If you change the inserted keyword from "header" to "headers" it should be correct.

What a great attention for detail. Well spotted.

Cheers,
Micha

Reply via email to