[issue13132] distutils sends non-RFC compliant HTTP request

2011-10-08 Thread Mitchell Hashimoto

Mitchell Hashimoto  added the comment:

Patch attached.

--
keywords: +patch
Added file: http://bugs.python.org/file23345/issue13132.patch

___
Python tracker 
<http://bugs.python.org/issue13132>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13132] distutils sends non-RFC compliant HTTP request

2011-10-08 Thread Mitchell Hashimoto

New submission from Mitchell Hashimoto :

In ``Lib/distutils/command/register.py`` as well as ``upload.py``, the 
following code exists to build the HTTP request body to send to the cheese shop 
server:

body.write('\nContent-Disposition: form-data; name="%s"'%key)
body.write("\n\n")

RFC2616 page 31 (http://tools.ietf.org/html/rfc2616#page-31) states that 
headers must be separated by CRLF. Specifically, the above "\n\n" for the 
header separator is causing issues with some minimal RFC-compliant web servers.

--
assignee: tarek
components: Distutils
messages: 145171
nosy: eric.araujo, mitchellh, tarek
priority: normal
severity: normal
status: open
title: distutils sends non-RFC compliant HTTP request
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4

___
Python tracker 
<http://bugs.python.org/issue13132>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6802] build fails on Snow Leopard

2009-08-30 Thread Mitchell Hashimoto

Changes by Mitchell Hashimoto :


--
nosy: +mitchellh

___
Python tracker 
<http://bugs.python.org/issue6802>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com