]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: send status: 100 after auth code to signal fastcgi module
authorYehuda Sadeh <yehuda@hq.newdream.net>
Sat, 4 Sep 2010 00:27:41 +0000 (17:27 -0700)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Sat, 4 Sep 2010 00:27:41 +0000 (17:27 -0700)
Shouldn't make any difference with older modules, and patched fastcgi
module should know how to handle it.

src/rgw/rgw_main.cc
src/rgw/rgw_rest.cc
src/rgw/rgw_rest.h

index 5c7b8a73331f0cf82502c135cace0ebd6e26b648..08ac3c55bde065de98746fbd428dbf02ed71e1ad 100644 (file)
@@ -275,6 +275,7 @@ int main(int argc, char *argv[])
       abort_early(&s, ret);
       continue;
     }
+    dump_continue(&s);
 
     RGWOp *op = rgwhandler.get_op();
     if (op) {
index 34b7058f4aa8a9e68007eadbe484a2fc559981a9..c5dfc5e9f0bb3c41b8c0c703d6ad56b8df78a284 100644 (file)
@@ -199,6 +199,12 @@ void abort_early(struct req_state *s, int err)
   end_header(s);
 }
 
+void dump_continue(struct req_state *s)
+{
+  dump_status(s, "100");
+  FCGX_FFlush(s->fcgx->out);
+}
+
 void dump_range(struct req_state *s, off_t ofs, off_t end)
 {
     CGI_PRINTF(s->fcgx->out,"Content-Range: bytes %d-%d/%d\n", (int)ofs, (int)end, (int)end + 1);
index 65495d343bef2ab49ab05d7bdfe2346467db3c30..8fe09498e4105429752a1ccbe11bbecf18d13aa5 100644 (file)
@@ -133,6 +133,7 @@ extern void open_section(struct req_state *s, const char *name);
 extern void close_section(struct req_state *s, const char *name);
 extern void dump_bucket(struct req_state *s, RGWObjEnt& obj);
 extern void abort_early(struct req_state *s, int err);
+extern void dump_continue(struct req_state *s);
 extern void list_all_buckets_end(struct req_state *s);
 extern void dump_value(struct req_state *s, const char *name, const char *fmt, ...);
 extern void dump_time(struct req_state *s, const char *name, time_t *t);