From f59e2e4be4eb457f3ada3eff5e4f28d4946a8c4e Mon Sep 17 00:00:00 2001 From: Nm0802 <86652457+Nm0802@users.noreply.github.com> Date: Thu, 8 Jul 2021 15:52:04 +0900 Subject: [PATCH] =?UTF-8?q?=E7=B7=B4=E7=BF=92=E5=95=8F=E9=A1=8C=E3=81=AE?= =?UTF-8?q?=E8=A7=A3=E7=AD=94=E3=81=A7=E3=81=99?= 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;