瀏覽代碼

server: remove unused query parsing

master
Milan Pässler 1 年之前
父節點
當前提交
bcf24fb00d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      server/index.js

+ 1
- 1
server/index.js 查看文件

@@ -46,7 +46,7 @@ const getReferences = async (hash) => {
http.createServer(async (req, stream) => {
stream.setHeader("Access-Control-Allow-Origin", "*");

const { pathname, query } = url.parse(req.url, true) // true to get query as object
const { pathname } = url.parse(req.url);
let split = pathname.split("/");
let name = split[split.length-1];



Loading…
取消
儲存