Skip to content

Commit

Permalink
fix "this"
Browse files Browse the repository at this point in the history
  • Loading branch information
james-hu committed May 30, 2021
1 parent 5320e9e commit 57275d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class App {
this.bridge = new Bridge();

// Exposing REST API
this.httpServer = http.createServer(function (req, res) {
this.httpServer = http.createServer((req, res) => {
const bodyPromise = this.handleHttpRequest(req);
bodyPromise.catch(e => {
let body;
Expand Down

0 comments on commit 57275d6

Please sign in to comment.