Open IsraaSulaiman opened 5 years ago
In the handler module:
request.post(options, (error, httpRes, body) => { if (error) handleServerError(req, res); else res.end(body) })
You did not use the httpRes argument in your function, so delete it!
we can't because request module take 3 argument and i need the third argument ... so to reach it should Passes httpRes i think i can delete body and use httpRes.body
:+1: Exactly!
In the handler module:
request.post(options, (error, httpRes, body) => { if (error) handleServerError(req, res); else res.end(body) })
You did not use the httpRes argument in your function, so delete it!