From 64e84b65ef441ec7330239f4dc7395ae1d771004 Mon Sep 17 00:00:00 2001 From: Dan Book Date: Wed, 9 Jan 2019 13:05:14 -0500 Subject: [PATCH] recreate http request in test (fixes #121) --- t/http-config.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/http-config.t b/t/http-config.t index c0b8825d..b6775d34 100644 --- a/t/http-config.t +++ b/t/http-config.t @@ -53,8 +53,8 @@ $request->header("User-Agent" => "Moz/1.0"); is(j($conf->matching_items($request)), "u:p|slash|.com|GET|not secure|always"); -$request->method("HEAD"); -$request->uri->scheme("https"); +$request = HTTP::Request->new(HEAD => "https://www.example.com/foo/bar"); +$request->header("User-Agent" => "Moz/1.0"); is(j($conf->matching_items($request)), ".com|GET|secure|always");