From patchwork Thu Feb 17 11:20:02 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: cclien X-Patchwork-Id: 569761 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p1HBK6OU006533 for ; Thu, 17 Feb 2011 11:20:06 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755565Ab1BQLUE (ORCPT ); Thu, 17 Feb 2011 06:20:04 -0500 Received: from mail-vx0-f174.google.com ([209.85.220.174]:60452 "EHLO mail-vx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753015Ab1BQLUD (ORCPT ); Thu, 17 Feb 2011 06:20:03 -0500 Received: by vxb37 with SMTP id 37so1017425vxb.19 for ; Thu, 17 Feb 2011 03:20:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=TX6ViUcLHXWXmpFYJIlGx82RMHSQAcpWd4Jg+XqrkTY=; b=pb1AFRiRNDkjYgc5EjvCgeYz3auS9MoYhiYYIQHDkwrqQjgg48BbX4E71B8C/om2dO kS5CqlTucIr/GdjD6XCrSUAd9qL+n702hvXWO3saUazNNg5vQm3/qeQ0uSUOzoRbV/RK OHFeuxu4Es+Z5aUiHcT28nTbln0y8vkJiY3yU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=YQs3F/XN19dhLi9Jh+w877EpZ3kGuEpUhLVxjOaDLoKaxwvF8gKPKWu8rk7vCyvHlC Awu90preHb6hmUn782ONS/lEkUHoLj+jUeWULCT/Y7LpOQdT1NR/9WoWtloYMzACbjHE LU0S2VL0YLWjrVCaVaiq8GWfwbnJvjVzPZR5U= MIME-Version: 1.0 Received: by 10.52.164.166 with SMTP id yr6mr119472vdb.245.1297941602583; Thu, 17 Feb 2011 03:20:02 -0800 (PST) Received: by 10.220.4.140 with HTTP; Thu, 17 Feb 2011 03:20:02 -0800 (PST) Date: Thu, 17 Feb 2011 19:20:02 +0800 Message-ID: Subject: [PATCH] rgw: Lighttpd compatibity. From: cclien To: ceph-devel@vger.kernel.org Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 17 Feb 2011 11:20:06 +0000 (UTC) diff --git a/src/rgw/rgw_rest.cc b/src/rgw/rgw_rest.cc index b923c42..1669e6f 100644 --- a/src/rgw/rgw_rest.cc +++ b/src/rgw/rgw_rest.cc @@ -493,7 +493,7 @@ void init_entities_from_header(struct req_state *s) } } else s->host_bucket = NULL; - const char *req_name = s->path_name; + const char *req_name = s->path_name_url.c_str(); const char *p; if (*req_name == '?') {