Bug#785763: httest: Broken example in manpage
[Micha Lenk 2015-05-20]
> 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.
--
Happy hacking
Petter Reinholdtsen
Reply to: