Skip to content
GitLab
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Roman Lacko
gitlab_api
Commits
289f68a7
Commit
289f68a7
authored
Oct 06, 2016
by
Roman Lacko
Committed by
Fakultni administrativa
Oct 06, 2016
Browse files
GitLab::API: removed dependency on URI::Encode
parent
07b61275
Changes
1
Hide whitespace changes
Inline
Side-by-side
GitLab/API.pm
View file @
289f68a7
...
...
@@ -14,7 +14,7 @@ use LWP::UserAgent;
use
Log::
Any
qw($log)
;
use
Scalar::
Util
qw(blessed)
;
use
URI
;
use
URI::
E
ncod
e
;
use
URI::
E
scap
e
;
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
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment