mirror of https://github.com/bastienwirtz/homer
fix(fresh-rss): Fix response decoding #902
parent
58a1a0764d
commit
3f1d8e01ad
|
@ -53,13 +53,9 @@ export default {
|
||||||
`/api/greader.php/accounts/ClientLogin?Email=${this.item.username}&Passwd=${this.item.password}`,
|
`/api/greader.php/accounts/ClientLogin?Email=${this.item.username}&Passwd=${this.item.password}`,
|
||||||
{ method: "GET", cache: "no-cache" },
|
{ method: "GET", cache: "no-cache" },
|
||||||
false,
|
false,
|
||||||
)
|
).then((body) => {
|
||||||
.then((response) => {
|
return body.match(/Auth=(([([a-z0-9]+)\/([([a-z0-9]+))/i);
|
||||||
return response.text();
|
});
|
||||||
})
|
|
||||||
.then((body) => {
|
|
||||||
return body.match(/Auth=(([([a-z0-9]+)\/([([a-z0-9]+))/i);
|
|
||||||
});
|
|
||||||
if (match !== null) this.auth = match[1];
|
if (match !== null) this.auth = match[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue