From 5b9d96e69d6c854a1838b7973a3b615ae1af9a7f Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Tue, 11 Nov 2014 12:17:42 +0800 Subject: Bug 1096318: Restricting a bug's visibility does not delete any associated MozReview review requests --- extensions/Push/lib/Connector/ReviewBoard/Client.pm | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'extensions/Push/lib') diff --git a/extensions/Push/lib/Connector/ReviewBoard/Client.pm b/extensions/Push/lib/Connector/ReviewBoard/Client.pm index 7ec4938d2..4848d820f 100644 --- a/extensions/Push/lib/Connector/ReviewBoard/Client.pm +++ b/extensions/Push/lib/Connector/ReviewBoard/Client.pm @@ -18,6 +18,17 @@ use URI; use Bugzilla::Extension::Push::Connector::ReviewBoard::ReviewRequest; +BEGIN { + unless (LWP::UserAgent->can('delete')) { + *LWP::UserAgent::delete = sub { + my ($self, @parameters) = @_; + require HTTP::Request::Common; + my @suff = $self->_process_colonic_headers(\@parameters, 1); + return $self->request(HTTP::Request::Common::DELETE(@parameters), @suff); + }; + } +}; + sub new { my ($class, %params) = @_; -- cgit v1.2.3-24-g4f1b