Skip to content

Commit

Permalink
fix: transmission login http verb, resolves #196
Browse files Browse the repository at this point in the history
  • Loading branch information
tympanix committed Dec 12, 2020
1 parent a96e513 commit 5a1fbff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/scripts/bittorrent/transmission/transmissionservice.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,12 @@ angular.module("torrentApp").service("transmissionService", [
var encoded = new Buffer(`${server.user}:${server.password}`).toString("base64");
config.encoded = encoded;

var data = {
method: "session-get",
};

$http
.get(this.url(), {
.post(this.url(), data, {
timeout: 5000,
headers: {
Authorization: "Basic " + encoded,
Expand Down

0 comments on commit 5a1fbff

Please sign in to comment.