Commit 26c14e23 authored by nanahira's avatar nanahira

fix async

parent da1531f1
......@@ -477,7 +477,7 @@ var packDatas = function (callback) {
}
//建立一个http服务器,接收API操作
function requestListener(req, res) {
async function requestListener(req, res) {
var u = url.parse(req.url, true);
if (!await auth.auth(u.query.username, u.query.password, "pre_dashboard", "pre_dashboard")) {
......
......@@ -217,7 +217,7 @@ var receiveDecks = function(files, callback) {
}
//建立一个http服务器,接收API操作
function requestListener(req, res) {
async function requestListener(req, res) {
var u = url.parse(req.url, true);
/*if (u.query.password !== config.password) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment