Commit 289f68a7 authored by Roman Lacko's avatar Roman Lacko Committed by Fakultni administrativa
Browse files

GitLab::API: removed dependency on URI::Encode

parent 07b61275
......@@ -14,7 +14,7 @@ use LWP::UserAgent;
use Log::Any qw($log);
use Scalar::Util qw(blessed);
use URI;
use URI::Encode;
use URI::Escape;
use URI::QueryParam;
use parent "Exporter";
......@@ -152,8 +152,7 @@ sub create_uri {
croak "Argument '$arg' is required for '$tmpl->{name}'"
unless defined $args->{$arg};
my $val = URI::Encode::uri_encode($args->{$arg},
$encode{$arg} ? { encode_reserved => 1 } : {});
my $val = URI::Escape::uri_escape($args->{$arg});
$path =~ s!<$arg>!$val!g;
delete $args->{$arg};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment