diff options
author | Drulac <drulac@protonmail.com> | 2021-04-13 08:18:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-13 08:18:24 +0200 |
commit | 7fa426a64372c17bd515b288892ef29693b52a21 (patch) | |
tree | 44219780853557b320be0ff18eeea82797f02a9c /files/fr | |
parent | bf165916dd55eebc858d9a58a8723a623bf59c43 (diff) | |
download | translated-content-7fa426a64372c17bd515b288892ef29693b52a21.tar.gz translated-content-7fa426a64372c17bd515b288892ef29693b52a21.tar.bz2 translated-content-7fa426a64372c17bd515b288892ef29693b52a21.zip |
Correct typo errors in the first code sample (#494)
The old code had 3 errors
Diffstat (limited to 'files/fr')
-rw-r--r-- | files/fr/learn/server-side/express_nodejs/introduction/index.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/files/fr/learn/server-side/express_nodejs/introduction/index.html b/files/fr/learn/server-side/express_nodejs/introduction/index.html index 5f87d9d77a..34db57060a 100644 --- a/files/fr/learn/server-side/express_nodejs/introduction/index.html +++ b/files/fr/learn/server-side/express_nodejs/introduction/index.html @@ -67,13 +67,13 @@ const hostname = "127.0.0.1"; const port = 8000; // Crée un serveur HTTP -const server = http.createServer((req, res) { +const server = http.createServer((req, res) => { // Configure l'en-tête de la réponse HTTP avec le code du statut et le type de contenu - response.writeHead(200, {'Content-Type': 'text/plain'}); + res.writeHead(200, {'Content-Type': 'text/plain'}); // Envoie le corps de la réponse "Salut tout le monde" - response.end('Salut tout le monde\n'); + res.end('Salut tout le monde\n'); }) // Démarre le serveur à l'adresse 127.0.0.1 sur le port 8000 |