diff options
author | sunspot <sunspot0105@gmail.com> | 2016-03-14 09:03:14 +0100 |
---|---|---|
committer | sunspot <sunspot0105@gmail.com> | 2016-03-15 10:55:12 +0100 |
commit | 98cf431259bc05d73d2c581302afac8cf34a6c1a (patch) | |
tree | 1bf0417920fbc3a111cd0c30c182757c61d03cfc /src/rgw/rgw_rest_client.h | |
parent | Merge pull request #8074 from tchaikov/wip-ceph-detect-init-test (diff) | |
download | ceph-98cf431259bc05d73d2c581302afac8cf34a6c1a.tar.xz ceph-98cf431259bc05d73d2c581302afac8cf34a6c1a.zip |
rgw: accept data only at the first time in response to a request
Because the member "max_response" in class "RGWRESTSimpleRequest" is
initialized 0, data packages cannot be accepted when the function
"receive_data()" is called again.
This patch initialize the value of "max_response" to "content-length".
Signed-off-by: sunspot <sunspot0105@gmail.com>
Diffstat (limited to 'src/rgw/rgw_rest_client.h')
-rw-r--r-- | src/rgw/rgw_rest_client.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rgw/rgw_rest_client.h b/src/rgw/rgw_rest_client.h index fb308f2a104..eb6e7aa2700 100644 --- a/src/rgw/rgw_rest_client.h +++ b/src/rgw/rgw_rest_client.h @@ -25,7 +25,7 @@ protected: size_t max_response; /* we need this as we don't stream out response */ bufferlist response; - virtual int handle_header(const string& name, const string& val) { return 0; } + virtual int handle_header(const string& name, const string& val); void append_param(string& dest, const string& name, const string& val); void get_params_str(map<string, string>& extra_args, string& dest); |