fix for nomerogram
This commit is contained in:
parent
2337a40e2b
commit
932cdfe8e9
@ -1,6 +1,5 @@
|
||||
import { createHash } from 'crypto';
|
||||
import Utils from '../utils/utils.js';
|
||||
import Utf8 from 'utf8';
|
||||
import DebugInfo from '../models/DebugInfo.js';
|
||||
|
||||
const baseUrl = 'https://www.nomerogram.ru/api/v1.1';
|
||||
@ -23,7 +22,7 @@ class NomerogramProvider {
|
||||
console.log('secret: ', secret);
|
||||
|
||||
let url = `${baseUrl}/group/list?from=${from}&carplate=${number}×tamp=${timestamp}&secret=${secret}&app_id=${appId}&device_id=${deviceId}`;
|
||||
let result = await fetch(Utf8.encode(url), {
|
||||
let result = await fetch(url, {
|
||||
timeout: 5000,
|
||||
headers: { 'User-Agent': userAgent }
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user