Having the following express server example:
app.get('/', (req, res) => needle.request('get', 'www.google.com').pipe(res));
The response does not contain the appropriate headers. For example, content-type is missing and the response is treated as text, not as HTML.
Hi,
Having the following express server example:
app.get('/', (req, res) => needle.request('get', 'www.google.com').pipe(res));
The response does not contain the appropriate headers. For example, content-type is missing and the response is treated as text, not as HTML.Any ideas how I can fix this?