From 9c4915bf522189c8332ee2a5f53158d1c6e11013 Mon Sep 17 00:00:00 2001 From: Michael Bykovski Date: Thu, 21 Sep 2017 00:13:14 +0200 Subject: [PATCH 1/2] Changed code example to javascript mode --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4744694..09965bb 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ The params have to look like this (there are not default values for the params!) ## Example -``` +```javascript webserver.onRequest( function(request) { console.log("O MA GAWD! This is the request: ", request); From ee060cef5042f6b7d0b24596187e55f7cfae6f0e Mon Sep 17 00:00:00 2001 From: Michael Bykovski Date: Sat, 23 Sep 2017 16:58:27 +0200 Subject: [PATCH 2/2] changed responseId to requestId #fail --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 09965bb..a9cc31a 100644 --- a/README.md +++ b/README.md @@ -81,7 +81,7 @@ webserver.onRequest( console.log("O MA GAWD! This is the request: ", request); webserver.sendResponse( - request.responseId, + request.requestId, { status: 200, body: 'Hello World',