Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:languages:pike
pike-7.6.86
pike-7.6.86-httprequest.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pike-7.6.86-httprequest.patch of Package pike-7.6.86
diff -Naur Pike-v7.6.86.orig/lib/modules/Protocols.pmod/HTTP.pmod/Server.pmod/Request.pike Pike-v7.6.86/lib/modules/Protocols.pmod/HTTP.pmod/Server.pmod/Request.pike --- Pike-v7.6.86.orig/lib/modules/Protocols.pmod/HTTP.pmod/Server.pmod/Request.pike 2006-05-29 15:13:53.000000000 +0200 +++ Pike-v7.6.86/lib/modules/Protocols.pmod/HTTP.pmod/Server.pmod/Request.pike 2007-04-24 11:10:21.765166056 +0200 @@ -368,7 +368,11 @@ buf = buf[l..]; return 1; } - + else if (request_type == "PUT" ) + { + body_raw = buf; + return 1; // do not read body when method is PUT + } my_fd->set_read_callback(read_cb_post); return 0; // delay } @@ -723,15 +727,13 @@ } } } - else if (send_pos==sizeof(send_buf) && !send_fd) - { - finish(sent==send_stop); - return; - } int n=my_fd->write(send_buf[send_pos..]); sent += n; send_pos+=n; + + if (send_pos==sizeof(send_buf) && !send_fd) + finish(sent==send_stop); } void send_timeout()
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor