Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update doc/api/http.md
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
  • Loading branch information
hassaanp and aduh95 authored Apr 2, 2021
commit 3b2f38c16b0985baca9348529e460315e17ef835
2 changes: 1 addition & 1 deletion doc/api/http.md
Original file line number Diff line number Diff line change
Expand Up @@ -2758,7 +2758,7 @@ http.get('http://localhost:8000/', (res) => {

// Create a local server to receive data from
const server = http.createServer((req, res) => {
res.writeHead(200, { 'content-type': 'application/json' });
res.writeHead(200, { 'Content-Type': 'application/json' });
res.end(JSON.stringify({
data: 'Hello World!'
}));
Expand Down