From 9e012877328e8659fa07354b371673c100803aeb Mon Sep 17 00:00:00 2001 From: Mitsuo Sato Date: Tue, 16 Nov 2021 18:15:18 +0900 Subject: [PATCH] =?UTF-8?q?=E7=B7=B4=E7=BF=92=E5=95=8F=E9=A1=8C=E5=AE=9F?= =?UTF-8?q?=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index b307d27f..edb209db 100644 --- a/index.js +++ b/index.js @@ -2,9 +2,11 @@ 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;