]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: remove trailing :port from host for purposes of subdomain matching 4873/head
authorSage Weil <sage@redhat.com>
Tue, 9 Jun 2015 18:15:10 +0000 (14:15 -0400)
committerSage Weil <sage@redhat.com>
Tue, 9 Jun 2015 18:15:10 +0000 (14:15 -0400)
commitabe4ec293d08b0314bf5c081ace2456073f3a22c
tree51d66e523a75dda4732eebe033390fb476649ed9
parent5feb806905811add7f936d64fddbefe13d1c1f09
rgw: remove trailing :port from host for purposes of subdomain matching

Some clients (ahem, CrossFTP) include the :port in the HTTP_HOST header.
Strip it out.

Switch req_info field to a std::string and avoid copying it in preprocess.

Signed-off-by: Sage Weil <sage@redhat.com>
src/rgw/rgw_common.cc
src/rgw/rgw_common.h
src/rgw/rgw_rest.cc