mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-11-26 15:05:50 +03:00
Fix params
This commit is contained in:
parent
5be66e7dc7
commit
4b8ee9ce83
1 changed files with 1 additions and 3 deletions
|
@ -169,9 +169,7 @@ export default class Api {
|
|||
|
||||
addFilter(url, name) {
|
||||
const { path, method } = this.FILTERING_ADD_FILTER;
|
||||
const urlParameter = 'url';
|
||||
const nameParameter = 'name';
|
||||
const requestBody = `${urlParameter}=${url}&${nameParameter}=${name}`;
|
||||
const requestBody = `url=${url}&name=${name}`;
|
||||
const config = {
|
||||
data: requestBody,
|
||||
header: { 'Content-Type': 'text/plain' },
|
||||
|
|
Loading…
Reference in a new issue