aboutsummaryrefslogtreecommitdiff
path: root/lib/Matrix/Client/Requester.pm6
diff options
context:
space:
mode:
authorMatias Linares <matiaslina@openmailbox.org>2017-04-12 19:20:38 -0300
committerMatias Linares <matiaslina@openmailbox.org>2017-04-12 19:20:38 -0300
commit5dcec83e6430da3abb0e5725b58fab85bd0adb8f (patch)
treedfb559eac191cdbdc988ee7f95b865fa33471943 /lib/Matrix/Client/Requester.pm6
parent2af030ffb9dd31f1fd4d1b0c6fbb901b23575a81 (diff)
downloadperl6-matrix-client-5dcec83e6430da3abb0e5725b58fab85bd0adb8f.tar.gz
Rework login/BUILD methods
Diffstat (limited to 'lib/Matrix/Client/Requester.pm6')
-rw-r--r--lib/Matrix/Client/Requester.pm62
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Matrix/Client/Requester.pm6 b/lib/Matrix/Client/Requester.pm6
index ec9a2d1..f6244e3 100644
--- a/lib/Matrix/Client/Requester.pm6
+++ b/lib/Matrix/Client/Requester.pm6
@@ -17,7 +17,7 @@ method get(Str $path, :$media = False, *%data) {
for %data.kv -> $k,$v {
$q ~= "&$k=$v" unless $v eq "";
}
- my $uri = uri_encode($.base-url($media) ~ $q);
+ my $uri = uri_encode($.base-url(:$media) ~ $q);
$!ua.history = [];
$!ua.get($uri)