From ac21fb84dae70dc5687f0219f62e924e9514e57e Mon Sep 17 00:00:00 2001 From: nbkhope Date: Fri, 2 Jul 2021 00:31:29 -0400 Subject: [PATCH] Update 13-api-json-xml-text.js Send value of `toursText` for text/plain format --- ch06/13-api-json-xml-text.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch06/13-api-json-xml-text.js b/ch06/13-api-json-xml-text.js index 5636485..10d9df5 100644 --- a/ch06/13-api-json-xml-text.js +++ b/ch06/13-api-json-xml-text.js @@ -18,7 +18,7 @@ app.get('/api/tours', (req, res) => { 'application/json': () => res.json(tours), 'application/xml': () => res.type('application/xml').send(toursXml), 'text/xml': () => res.type('text/xml').send(toursXml), - 'text/plain': () => res.type('text/plain').send(toursXml), + 'text/plain': () => res.type('text/plain').send(toursText), }) })