[issue10510] distutils.command.upload/register HTTP message headers: bad line termination

Éric Araujo report at bugs.python.org
Tue Nov 23 12:50:51 CET 2010


Éric Araujo <merwok at netwok.org> added the comment:

Thank you for the report.  This is how I understand the part of the spec you quoted: Strictly valid HTTP uses CRLF, but servers and clients should be liberal in what they accept and deal with LF too.  Senthil, do you agree with that?

There are a small number of PyPI-like servers out there which seem to deal fine with what distutils produces.  We have strong backward compatibility constraints in distutils, so we try to make the less changes possible to fix bugs.  Because we’ve haven’t had this reported by those other servers before, I’m tempted to reject this report.  The good part is that since you’re still writing the server, you can change its code to follow Postel’s Law and be liberal in what you accept.  Does that sound acceptable to you?

Best regards

----------
assignee:  -> eric.araujo
components: +Distutils, Distutils2
nosy: +eric.araujo, orsenthil, tarek
versions: +3rd party, Python 3.2 -Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10510>
_______________________________________


More information about the Python-bugs-list mailing list