New submission from Giovanni Funchal <gafunc...@gmail.com>:

GIHTTPServer.py is a very handy module for quickly setting up a full HTTP 
server with CGI support. However, I noticed that it doesn't support responses 
other than "200 OK". So, for instance if the page wants to do a redirect 
(response 303), it just isn't supported. It's documented as so, but still I 
think this is a major drawback that can be easily overcome.

I have attached a patch against 2.7. I'd be happy to port it to dev branch if 
help provided as I'm new to Python. Reviews/suggestions more than welcome.

----------
components: Library (Lib)
files: CGIHTTPServer.patch
keywords: patch
messages: 152137
nosy: Giovanni.Funchal
priority: normal
severity: normal
status: open
title: Make CGIHTTPServer capable of redirects (and status other than 200)
type: enhancement
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file24342/CGIHTTPServer.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13893>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to