big-r81 commented on code in PR #368:
URL: https://github.com/apache/couchdb-nano/pull/368#discussion_r3020645531


##########
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:
   Short question: Are these headers always trimmed before?



-- 
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]

Reply via email to