[bknr-cvs] edi changed trunk/thirdparty/hunchentoot/request.lisp

BKNR Commits bknr at bknr.net
Mon Feb 16 23:59:29 UTC 2009


Revision: 4265
Author: edi
URL: http://bknr.net/trac/changeset/4265

Not really a fix...

U   trunk/thirdparty/hunchentoot/request.lisp

Modified: trunk/thirdparty/hunchentoot/request.lisp
===================================================================
--- trunk/thirdparty/hunchentoot/request.lisp	2009-02-16 23:24:49 UTC (rev 4264)
+++ trunk/thirdparty/hunchentoot/request.lisp	2009-02-16 23:59:29 UTC (rev 4265)
@@ -254,8 +254,12 @@
                            (setf (slot-value request 'raw-post-data) t)))))))
       (error (condition)
         (log-message :error "Error when reading POST parameters from body: ~A" condition)
-        ;; we assume it's not our fault...
-        (setf (return-code*) +http-bad-request+)))))
+        ;; this is not the right thing to do because it could happen
+        ;; that we aren't finished reading from the request stream and
+        ;; can't send a reply - to be revisited
+        (setf (return-code*) +http-bad-request+
+              *close-hunchentoot-stream* t)
+        (abort-request-handler)))))
 
 (defun recompute-request-parameters (&key (request *request*)
                                           (external-format *hunchentoot-default-external-format*))





More information about the Bknr-cvs mailing list