express-get-json Flashcards
1
Q
What is the appropriate Content-Type header for HTTP messages that contain JSON in their bodies?
A
“application/json” or “/json” (however if it is “/*”, then the response will be “hey”).
‘application/json’: function () {
res.send({ message: ‘hey’ })
},