From 79faf7c6753d4f9b4f21db23611bb874cded360e Mon Sep 17 00:00:00 2001 From: K K Date: Tue, 29 Jun 2021 00:21:22 +0900 Subject: [PATCH] =?UTF-8?q?HTML=E3=82=92=E5=90=90=E3=81=8F?= 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;