Commit 9bb6a3d4c2742d4b01110fc9596cf39a586ed590
1 parent
17c096e5cd
Exists in
master
perbaikan httpserver
Showing 1 changed file with 4 additions and 4 deletions Side-by-side Diff
partner-fm.js
... | ... | @@ -291,13 +291,13 @@ function createServer() { |
291 | 291 | logger.info('Got request from partner'); |
292 | 292 | |
293 | 293 | var body = ""; |
294 | - req.on('data', function (chunk) { | |
294 | + request.on('data', function (chunk) { | |
295 | 295 | body += chunk; |
296 | 296 | }); |
297 | 297 | |
298 | - req.on('end', function () { | |
299 | - res.writeHead(200); | |
300 | - res.end('OK'); | |
298 | + request.on('end', function () { | |
299 | + response.writeHead(200); | |
300 | + response.end('OK'); | |
301 | 301 | |
302 | 302 | topupResponseHandler(body, null, callbackReport); |
303 | 303 |