diff --git a/lesson4/README.md b/lesson4/README.md index bd85a38..7d9a4a9 100644 --- a/lesson4/README.md +++ b/lesson4/README.md @@ -370,7 +370,7 @@ else{ return false } res.writeHead(200, { - 'Content-Type': `${mime.lookup(pathname)};charset:UTF-8` + 'Content-Type': `${mime.getType(pathname)};charset:UTF-8` }) res.write(data, 'binary') res.end()