diff options
Diffstat (limited to 'extensions/Push/lib')
-rw-r--r-- | extensions/Push/lib/Connector/ReviewBoard/Client.pm | 11 |
1 files changed, 11 insertions, 0 deletions
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) = @_; |