GitHub user olafura opened a pull request:
https://github.com/apache/couchdb/pull/284
Backport Accept check from chttpd
Backport "Accept check" from chttpd to correctly handle when browser
try to access a database when they aren't logged in or need to change their
login
This fixes so many bugs that have been littering the bug system for years.
The problem was that browsers over promise and we were using that to check
if it was json or html. I have another patch that is only 4 lines added and
two
changed but since it was changed in chttpd I thought merging that was the
best
thing.
Also if this patch doesn't get accepted I have an other solution in a form
of allowing
rewrite to change headers.
This closes #283
COUCHDB-1175
COUCHDB-2435
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/olafura/couchdb 1.x.x
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/couchdb/pull/284.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #284
----
commit cedb1c3f31c79b99819aa4f9376f4ebd3b8bc4d5
Author: Olafur Arason <[email protected]>
Date: 2014-11-16T20:03:20Z
Backport Accept check from chttpd to correctly handle when browser
try to access a database when they aren't logged in or need to change
their login
----
---
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 [email protected] or file a JIRA ticket
with INFRA.
---