You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by kx...@apache.org on 2013/08/21 18:37:42 UTC

[15/50] git commit: updated refs/heads/1781-reorganize-and-improve-docs to 360107b

Don't raise an error for local X-Couch-* and Couch-* headers.


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/3281d420
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/3281d420
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/3281d420

Branch: refs/heads/1781-reorganize-and-improve-docs
Commit: 3281d420a2e7375e5aad880224950dda5df0badc
Parents: e3f4ee7
Author: Alexander Shorin <kx...@apache.org>
Authored: Sun Aug 11 23:27:51 2013 +0400
Committer: Alexander Shorin <kx...@apache.org>
Committed: Wed Aug 21 20:27:19 2013 +0400

----------------------------------------------------------------------
 share/doc/ext/httpdomain.py | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/3281d420/share/doc/ext/httpdomain.py
----------------------------------------------------------------------
diff --git a/share/doc/ext/httpdomain.py b/share/doc/ext/httpdomain.py
index 808a391..a53f5b7 100644
--- a/share/doc/ext/httpdomain.py
+++ b/share/doc/ext/httpdomain.py
@@ -402,6 +402,8 @@ def http_header_role(name, rawtext, text, lineno, inliner,
     if header not in HEADER_REFS:
         header = header.title()
     if header not in HEADER_REFS:
+        if header.startswith(('X-Couch-', 'Couch-')):
+            return [nodes.strong(header, header)], []
         msg = inliner.reporter.error('%s is not unknown HTTP header' % header,
                                      lineno=lineno)
         prb = inliner.problematic(rawtext, rawtext, msg)