Skip to content

Commit

Permalink
fx https import
Browse files Browse the repository at this point in the history
  • Loading branch information
z committed Aug 13, 2023
1 parent 9ecc50c commit f89045b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/server/ipLite.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from 'fs';
import JSZip from 'jszip';
import {https} from 'follow-redirects';
import * as fr from 'follow-redirects';
import { IP2Location } from 'ip2location-nodejs';
import { sys } from '$lib/server/index';
import path from 'path';
Expand Down Expand Up @@ -37,6 +37,7 @@ async function update() {
const data = [] as Uint8Array[];
const link = url.replace('$TOKEN', tk);
downloading = 1;
const {https} = fr
const req = https.get(link, (res) => {
res.on('data', (d) => {
siz += d.length;
Expand Down

0 comments on commit f89045b

Please sign in to comment.