couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From olafura <...@git.apache.org>
Subject [GitHub] couchdb pull request: Backport Accept check from chttpd
Date Fri, 28 Nov 2014 16:13:58 GMT
Github user olafura commented on the pull request:

    https://github.com/apache/couchdb/pull/284#issuecomment-64909212
  
    @rnewson It's usually sent with q= value but the problem is that the matching is not done
together, so the correct behavior is giving the match two possible behaviors and letting it
decide the best candidate. I'll make a patch this weekend. But I'm going to need somebodies
help with making all the test cases, I saw that some other people had done those kinds of
tests for their framework, it can be a starting place what we need to cover.
    
    What bugs you about the old behavior, where you getting html when you didn't want that
or were you getting json when you didn't want that. And what were the Accept headers that
were causing you problems.
    
    I don't know of a case myself where this old behavior would break, maybe except if you
only accepted xhtml and not html, then why are you calling it or you want json if xhtml isn't
available. All the browsers send something containing html and they are the primary use case
for not sending json to.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message