Open michaelpwilson opened 6 years ago
I was able to get around this by creating functions which took in the request/response, and made them into Request and Response objects:
function convertRequest(request) {
return new Request({
method: request.method,
query: request.query,
headers: request.headers
});
}
function convertResponse(response) {
return new Response({
headers: response.headers
});
}
Would anyone be able to suggest if this is a good idea or not?
Thanks!
When trying to authenticate a get request with hapi, I cannot supply request and reply like so:
I understand this is because Request and Response are not being used by Hapi.js, but is there anyway to get this to work?
Error log: