diff src/c/request.c @ 1037:83d8ddd09d95

Send RPCs with POST, to avoid caching
author Adam Chlipala <adamc@hcoop.net>
date Sat, 21 Nov 2009 14:29:35 -0500
parents 6304f5e8fbb4
children 217eb87dde31
line wrap: on
line diff
--- a/src/c/request.c	Sat Nov 21 13:50:59 2009 -0500
+++ b/src/c/request.c	Sat Nov 21 14:29:35 2009 -0500
@@ -172,8 +172,9 @@
   if (!strcmp(method, "POST")) {
     char *clen_s = uw_Basis_requestHeader(ctx, "Content-length");
     if (!clen_s) {
-      log_error(logger_data, "No Content-length with POST\n");
-      return FAILED;
+      clen_s = "0";
+      /*log_error(logger_data, "No Content-length with POST\n");
+      return FAILED;*/
     }
     int clen = atoi(clen_s);
     if (clen < 0) {