diff options
Diffstat (limited to 'tests/rewrite03.at')
-rw-r--r-- | tests/rewrite03.at | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/rewrite03.at b/tests/rewrite03.at index 6433f7d..7bcd18c 100644 --- a/tests/rewrite03.at +++ b/tests/rewrite03.at @@ -1,5 +1,5 @@ # This file is part of vmod-dbrw -*- autotest -*- -# Copyright (C) 2013-2014 Sergey Poznyakoff +# Copyright (C) 2013-2018 Sergey Poznyakoff # # Vmod-dbrw is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -23,7 +23,8 @@ AT_CHECK([ AT_DBINIT_PREREQ AT_VCL([SELECT dest,pattern,value FROM rewrite - WHERE host='$host' AND '$url' LIKE url], + WHERE host='$host' AND url IN ($(urlprefixes $url)) + ORDER BY LENGTH(dest),value DESC], [txreq -url /local2/foo/bar -hdr "Host:en.example.net" rxresp expect resp.http.Location == "http://to.example.net/foo/bar" |