Ticket #14796: patch-Request.pike

File patch-Request.pike, 462 bytes (added by exodusd@…, 16 years ago)

source code patch for pike 7.6.112 (HTTP-Request PUT fix)

Line 
1--- lib/modules/Protocols.pmod/HTTP.pmod/Server.pmod/Request.pike.orig  2008-03-22 20:51:20.000000000 +0100
2+++ lib/modules/Protocols.pmod/HTTP.pmod/Server.pmod/Request.pike       2008-03-22 20:51:32.000000000 +0100
3@@ -368,7 +368,11 @@
4     buf = buf[l..];
5     return 1;
6   }
7-
8+  else if (request_type == "PUT" )
9+  {
10+    body_raw = buf;
11+    return 1; // do not read body when method is PUT
12+  }
13   my_fd->set_read_callback(read_cb_post);
14   return 0; // delay
15 }