Commit 435b2ceb authored by nanahira's avatar nanahira

change path

parent 04f4cd7e
...@@ -11,7 +11,7 @@ const https_options = { ...@@ -11,7 +11,7 @@ const https_options = {
const https_server = https.createServer(https_options, (request, response) => { const https_server = https.createServer(https_options, (request, response) => {
const u = url.parse(request.url, false); const u = url.parse(request.url, false);
const path_match = u.pathname.match(/^\/(.+)\.png$/); const path_match = u.pathname.match(/^\/user_avatar\/ygobbs.com\/(.+)\/\d+\/\d+_2\.png$/);
if (!path_match) { if (!path_match) {
response.writeHead(403); response.writeHead(403);
response.end("Invalid pathname."); response.end("Invalid pathname.");
......
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