From 21db28e904fdcb839c68c6dab3d0f4265accff88 Mon Sep 17 00:00:00 2001 From: tinassyi Date: Sun, 13 Jun 2021 13:35:37 +0000 Subject: [PATCH] =?UTF-8?q?=E8=A1=A8=E7=A4=BA=E5=86=85=E5=AE=B9=E3=81=AE?= =?UTF-8?q?=E5=A4=89=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;