diff options
author | Matias Linares <matiaslina@gmail.com> | 2020-05-17 20:09:38 -0300 |
---|---|---|
committer | Matias Linares <matiaslina@gmail.com> | 2020-05-17 20:09:38 -0300 |
commit | 4823babb29e8d2c2f65b775e72210aac7a2175c5 (patch) | |
tree | 7433d7c5c662e4ebea5b55349a1e34632bcc8030 /lib/Matrix/Client/Requester.pm6 | |
parent | ba413134ddcc6177b3673ba18d0035d78714e3fe (diff) | |
download | perl6-matrix-client-4823babb29e8d2c2f65b775e72210aac7a2175c5.tar.gz |
Add Matrix::Client::MediaStore class
This is to wrap all the endpoints pointing to the media store.
Diffstat (limited to 'lib/Matrix/Client/Requester.pm6')
-rw-r--r-- | lib/Matrix/Client/Requester.pm6 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Matrix/Client/Requester.pm6 b/lib/Matrix/Client/Requester.pm6 index ff543c9..36a9f69 100644 --- a/lib/Matrix/Client/Requester.pm6 +++ b/lib/Matrix/Client/Requester.pm6 @@ -73,7 +73,7 @@ multi method post(Str $path, :$media = False, *%params) { method post-bin(Str $path, Buf $buf, :$content-type) { my $encoded-path = $path.subst('#', '%23'); my $req = POST( - $.base-url(:media) ~ $encoded-path, + $.base-url() ~ $encoded-path, content => $buf, Content-Type => $content-type ); |