mirror of
https://github.com/bastienwirtz/homer.git
synced 2025-11-02 03:16:23 +01:00
fix(fresh-rss): Fix response decoding #902
This commit is contained in:
@@ -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];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user