Return-Path: X-Original-To: apmail-httpd-dev-archive@www.apache.org Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1E13418AE8 for ; Mon, 18 May 2015 14:53:59 +0000 (UTC) Received: (qmail 79043 invoked by uid 500); 18 May 2015 14:53:58 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 78977 invoked by uid 500); 18 May 2015 14:53:58 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 78965 invoked by uid 99); 18 May 2015 14:53:58 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 May 2015 14:53:58 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id A3C1F1823FE for ; Mon, 18 May 2015 14:53:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.01 X-Spam-Level: X-Spam-Status: No, score=-0.01 tagged_above=-999 required=6.31 tests=[SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id UnaD1pgxCW5u for ; Mon, 18 May 2015 14:53:50 +0000 (UTC) Received: from mail.netnea.com (gstserv.netnea.com [213.200.225.210]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 6B78124965 for ; Mon, 18 May 2015 14:53:49 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netnea.com (Postfix) with ESMTP id 0AA3940058 for ; Mon, 18 May 2015 16:53:13 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at neanet.com Received: from mail.netnea.com ([127.0.0.1]) by localhost (x28.netnea.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Oz8sw4wzapt1 for ; Mon, 18 May 2015 16:53:12 +0200 (CEST) Received: from elias (unknown [93.94.243.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail.netnea.com (Postfix) with ESMTPSA id E365840055 for ; Mon, 18 May 2015 16:53:12 +0200 (CEST) Received: by elias (Postfix, from userid 1000) id 6C47E640892; Mon, 18 May 2015 16:53:12 +0200 (CEST) Date: Mon, 18 May 2015 16:53:12 +0200 From: Christian Folini To: dev@httpd.apache.org Subject: mod_lua: Accessing multiple Set-Cookie response headers Message-ID: <20150518145312.GA24125@elias> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Hello, Mod_lua gave me a few quick wins when I started to play around with cookies on a reverse proxy. But then the obvious happened: the backend started to issue multiple Set-Cookie response headers in the same http response. mod_lua returns the headers via r.headers_out, but while the documentation states the return value is of lua-type "table", it is actually of lua-type "userdata" and I can not seem my way around accessing more then a single Set-Cookie header per request. The latter is done via r.headers_out['Set-Cookie'], but now I got stuck. Any ideas? Best, Christian Folini -- Christian Folini -