Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 1973 invoked from network); 4 Oct 2010 16:26:39 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Oct 2010 16:26:39 -0000 Received: (qmail 25710 invoked by uid 500); 4 Oct 2010 16:26:39 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 25606 invoked by uid 500); 4 Oct 2010 16:26:38 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 25597 invoked by uid 99); 4 Oct 2010 16:26:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Oct 2010 16:26:38 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bchesneau@gmail.com designates 209.85.214.180 as permitted sender) Received: from [209.85.214.180] (HELO mail-iw0-f180.google.com) (209.85.214.180) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Oct 2010 16:26:30 +0000 Received: by iwn8 with SMTP id 8so9719845iwn.11 for ; Mon, 04 Oct 2010 09:26:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=WnG+P2NeIFXWD4GKwwVamKF80KujBqpT0XeMkPIZoYY=; b=p/tmRTiARaKmDoEyb9O3TTZ/C/aipFMLL6pa9QwEpPPzZ/rl/2bG8fYGphxs6HPr4k i1n3k76aViRmaVi99sS7owOKe7Uv1xIryhxeRW1sx2xJW18iNud27osy0z5oHkdJu+FE N1qC+BieyevS5OHu9QA5epjAOFsYQHuxOtb3s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=mDLYDWodUcfhyMn1Ffg+XhknGRM5TkY7+bGSKBYdZVM9qYJGnUJhkedaQurhJFpqVn BGxc7OPfrwQZPI/Q1Oj+i/H+dJJwkiXfjOTOE99moLwH1LSa2Hyw9ezLWKNckM1JA5yf BvIt31ApiRlZrz2rn+FpWqAQNERjWUmZOs0K4= MIME-Version: 1.0 Received: by 10.231.156.65 with SMTP id v1mr10429824ibw.107.1286209569119; Mon, 04 Oct 2010 09:26:09 -0700 (PDT) Received: by 10.231.169.148 with HTTP; Mon, 4 Oct 2010 09:26:08 -0700 (PDT) In-Reply-To: References: Date: Mon, 4 Oct 2010 18:26:08 +0200 Message-ID: Subject: Re: New Externals: Implemented with tests From: Benoit Chesneau To: dev@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Mon, Oct 4, 2010 at 5:49 PM, Paul Davis wrote: > I'm not entirely sure about rewriting headers. For the most part I > wanted to make sure that I wasn't modifying headers in anyway. If > there's a specific set of headers that need to be handled then we can > take a look at adding that in. > At least Location need cleaning at least since you get full headers and pass them to mochiweb directly in start_response. A remote server can set a Location to /some/path but you display behind /_proxied/some/path. Also during redirection (302/303) , rewriting locaton may be needed too though redirecting isn't handled yet. I've already some code for that from couchdbproxy. Will provide a patch. - benoit