modified: src/main.js
new file: start.sh
This commit is contained in:
parent
ac505387c6
commit
15da1547f6
|
@ -91,8 +91,8 @@ var getUser = (u, n) => {
|
||||||
|
|
||||||
var dl = (url, dest, cb) => {
|
var dl = (url, dest, cb) => {
|
||||||
var request = (url.match(/^https/)?https:http).get(url, (response) => { // type:1=post,type:2=stfu
|
var request = (url.match(/^https/)?https:http).get(url, (response) => { // type:1=post,type:2=stfu
|
||||||
|
console.log(response.headers['content-type']);
|
||||||
if(cfg.allowedMimes.hasOwnProperty(response.headers['content-type'])) {
|
if(cfg.allowedMimes.hasOwnProperty(response.headers['content-type'])) {
|
||||||
console.log(cfg.allowedMimes[response.headers['content-type']]);
|
|
||||||
if(response.headers['content-length'] <= cfg.maxFileSize) {
|
if(response.headers['content-length'] <= cfg.maxFileSize) {
|
||||||
checkRepost(url, (cbcr) => {
|
checkRepost(url, (cbcr) => {
|
||||||
if(cbcr) {
|
if(cbcr) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user