Make some regular expressions more strict. This allows the tests
authorbluhm <bluhm@openbsd.org>
Wed, 29 Apr 2015 08:45:53 +0000 (08:45 +0000)
committerbluhm <bluhm@openbsd.org>
Wed, 29 Apr 2015 08:45:53 +0000 (08:45 +0000)
to pass also if relayd is compiled with DEBUG.

regress/usr.sbin/relayd/args-http-chunked.pl
regress/usr.sbin/relayd/args-http-mark-marked2.pl
regress/usr.sbin/relayd/args-https-chunked.pl

index e3fa98e..5b0abfe 100644 (file)
@@ -16,7 +16,7 @@ our %args = (
            "match response header log Transfer-Encoding",
        ],
        loggrep => {
-               "Transfer-Encoding: chunked" => 1,
+               "{Transfer-Encoding: chunked}" => 1,
                qr/\[\(null\)\]/ => 0,
        },
     },
index 234c8af..2eb8b42 100644 (file)
@@ -26,7 +26,7 @@ our %args = (
            'match request header log "MyHeader"',
        ],
        loggrep => {
-           'User-Agent: BORK' => 1,
+           '\[User-Agent: BORK\]' => 1,
            'MyHeader: FOO' => 0,
        },
     },
index 0a62174..f13f589 100644 (file)
@@ -17,7 +17,7 @@ our %args = (
            "match response header log Transfer-Encoding",
        ],
        loggrep => {
-               "Transfer-Encoding: chunked" => 1,
+               "{Transfer-Encoding: chunked}" => 1,
                qr/\[\(null\)\]/ => 0,
        },
        forwardssl => 1,