diff options
Diffstat (limited to 'src/rgw/rgw_fcgi.cc')
-rw-r--r-- | src/rgw/rgw_fcgi.cc | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/src/rgw/rgw_fcgi.cc b/src/rgw/rgw_fcgi.cc index 70ed9961975..0504505aad0 100644 --- a/src/rgw/rgw_fcgi.cc +++ b/src/rgw/rgw_fcgi.cc @@ -25,7 +25,26 @@ void RGWFCGX::flush() FCGX_FFlush(fcgx->out); } -const char **RGWFCGX::envp() +void RGWFCGX::init_env(CephContext *cct) { - return (const char **)fcgx->envp; + env.init(cct, (char **)fcgx->envp); +} + +int RGWFCGX::send_status(const char *status, const char *status_name) +{ + return print("Status: %s\n", status); +} + +int RGWFCGX::send_100_continue() +{ + int r = send_status("100", "Continue"); + if (r >= 0) { + flush(); + } + return r; +} + +int RGWFCGX::complete_header() +{ + return print("\r\n"); } |