Standalone server: fix file uploads
Brought to you by:
jhermann,
thomaswaldmann
The standalone server doesn't set the content-type,
which means that multipart/form-data doesn't work,
which means
that file uploads don't work, which means that creating
attachments doesn't work.
The attached patch sets content-type, and adds
an inefficient .readline() method because the 'cgi'
module needs it.
Logged In: YES
user_id=100649
Thanks for the patch.
It will be in arch soon and also in 1.2.2.