From 4d4d7bd660764c673dd749b3ed28651271e5eb16 Mon Sep 17 00:00:00 2001 From: SS-Ootu Date: Mon, 19 Jul 2021 04:16:45 +0000 Subject: [PATCH] =?UTF-8?q?user-agent=E3=82=92HTML=E3=81=AB=E5=A4=89?= =?UTF-8?q?=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index b307d27f..b85233d7 100644 --- a/index.js +++ b/index.js @@ -2,9 +2,9 @@ const http = require('http'); const server = http.createServer((req, res) => { res.writeHead(200, { - 'Content-Type': 'text/plain; charset=utf-8' + 'Content-Type': 'text/html; charset=utf-8' }); - res.write(req.headers['user-agent']); + res.write('

HTMLの一番大きい見出しを表示します

'); res.end(); }); const port = 8000;