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}`,
|
||||
{ method: "GET", cache: "no-cache" },
|
||||
false,
|
||||
)
|
||||
.then((response) => {
|
||||
return response.text();
|
||||
})
|
||||
.then((body) => {
|
||||
return body.match(/Auth=(([([a-z0-9]+)\/([([a-z0-9]+))/i);
|
||||
});
|
||||
).then((body) => {
|
||||
return body.match(/Auth=(([([a-z0-9]+)\/([([a-z0-9]+))/i);
|
||||
});
|
||||
if (match !== null) this.auth = match[1];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue