Example
<AttachmentInclude(medusa-0.5.2-diff.patch,patch,/NiKKi/Download)>
patch
diff -urN medusa/http_server.py medusa-mod/http_server.py
--- medusa/http_server.py Mon Mar 25 08:26:29 2002
+++ medusa-mod/http_server.py Mon May 27 20:10:30 2002
@@ -456,9 +456,12 @@
# unquote path if necessary (thanks to Skip Montaro for pointing
# out that we must unquote in piecemeal fashion).
- if '%' in request:
- request = unquote (request)
-
+ #
+ #if '%' in request:
+ # request = unquote (request)
+ # if space (' ') is quoted (i.e. %20) next crack_request()
+ # function won't work after unquote, so unquote should be the
+ # task of handlers
command, uri, version = crack_request (request)
header = join_headers (lines[1:])
diff -urN medusa/thread_handler.py medusa-mod/thread_handler.py
--- medusa/thread_handler.py Wed Mar 20 16:38:47 2002
+++ medusa-mod/thread_handler.py Mon May 27 20:04:13 2002
@@ -211,7 +211,8 @@
self.buffer = self.buffer + data
lines = string.split (self.buffer, '\n')
# ignore the last piece, it is either empty, or a partial line
- lines = lines[:-1]
+ # lines = lines[:-1]
+ # (KS) need last line if you are sending binary data
# look for something un-header-like
for i in range(len(lines)):
li = lines[i]