Fix contentType -> Content-Type
This commit is contained in:
parent
c82b4c7f40
commit
af181e38e7
@ -67,7 +67,7 @@ function sendIndex(res) {
|
|||||||
</ul>
|
</ul>
|
||||||
</body>
|
</body>
|
||||||
</html>`;
|
</html>`;
|
||||||
res.writeHead(200, {'contentType': 'text/html; charset=utf-8'});
|
res.writeHead(200, {'Content-type': 'text/html; charset=utf-8'});
|
||||||
res.end(html, 'utf-8');
|
res.end(html, 'utf-8');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -81,7 +81,7 @@ function sendDeckIndex(res, deckName) {
|
|||||||
<a href="${deckName}/play">Play!</a>
|
<a href="${deckName}/play">Play!</a>
|
||||||
</body>
|
</body>
|
||||||
</html>`;
|
</html>`;
|
||||||
res.writeHead(200, {'contentType': 'text/html; charset=utf-8'});
|
res.writeHead(200, {'Content-type': 'text/html; charset=utf-8'});
|
||||||
res.end(html, 'utf-8');
|
res.end(html, 'utf-8');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -101,7 +101,7 @@ function sendPlayfield(res, deckName) {
|
|||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>`;
|
</html>`;
|
||||||
res.writeHead(200, {'contentType': 'text/html; charset=utf-8'});
|
res.writeHead(200, {'Content-type': 'text/html; charset=utf-8'});
|
||||||
res.end(html, 'utf-8');
|
res.end(html, 'utf-8');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user