glynnbird commented on code in PR #368:
URL: https://github.com/apache/couchdb-nano/pull/368#discussion_r3020776382
##########
lib/nano.js:
##########
@@ -148,7 +148,7 @@ module.exports = exports = function dbScope (cfg) {
// when doing head requests, we return the response headers, not the
response body
if (req.method === 'head') {
retval = Object.fromEntries(response.headers)
- } else if (contentType === 'application/json') {
+ } else if (contentType && contentType.startsWith('application/json')) {
Review Comment:
I'm not going to worry about it just now.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]