From 918be01504107763e4febdb4ed74aeda599fd33d Mon Sep 17 00:00:00 2001 From: Charles McGarvey Date: Sat, 2 Mar 2019 13:44:55 -0700 Subject: [PATCH] fix middleware synopsis --- lib/HTTP/AnyUA/Middleware.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/HTTP/AnyUA/Middleware.pm b/lib/HTTP/AnyUA/Middleware.pm index 21b6db8..01dda30 100644 --- a/lib/HTTP/AnyUA/Middleware.pm +++ b/lib/HTTP/AnyUA/Middleware.pm @@ -13,7 +13,7 @@ package HTTP::AnyUA::Middleware; # Maybe do something with the request args here. # Let backend handle the response: - my $response = $self->backend($method, $url, $args); + my $response = $self->backend->request($method, $url, $args); my $handle_response = sub { my $response = shift; -- 2.45.2