mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
chore: eslint
This commit is contained in:
parent
dab0f9ab45
commit
6a08b15095
@ -8,7 +8,7 @@ export class RequestUtil {
|
|||||||
const client = url.startsWith('https') ? https : http;
|
const client = url.startsWith('https') ? https : http;
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
const req = client.get(url, (res) => {
|
const req = client.get(url, (res) => {
|
||||||
let cookies: { [key: string]: string } = {};
|
const cookies: { [key: string]: string } = {};
|
||||||
|
|
||||||
res.on('data', () => { }); // Necessary to consume the stream
|
res.on('data', () => { }); // Necessary to consume the stream
|
||||||
res.on('end', () => {
|
res.on('end', () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user