Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Patching CGIHTTPServer.py

10 views
Skip to first unread message

Giovanni Funchal

unread,
Jan 27, 2012, 5:48:53 PM1/27/12
to pytho...@python.org, Laurie Lugrin
Hi everyone,

I was fiddling around with CGIHTTPServer.py --- a very handy module
for quickly setting up a full HTTP server with CGI support --- when I
noticed that it doesn't support responses other than "200 OK". So, for
instance if your page wants to do a redirect (response 303), it just
isn't supported. I think this is a major drawback that can be easily
overcome and I'd very happily contribute that as an enhancement.

But... I'm new to Python and as a matter of fact web programming as a
whole isn't really my specialty. I was thinking that maybe someone
could spend half an hour looking at my solution and help raising it's
quality to the level I can submit it as a patch proposal.

Cheers,
-- Giovanni
CGIHTTPServer.patch

Miki Tebeka

unread,
Jan 28, 2012, 11:04:38 AM1/28/12
to pytho...@python.org, Laurie Lugrin
IMO the code is good enough to submit a patch.

Miki Tebeka

unread,
Jan 28, 2012, 11:04:38 AM1/28/12
to comp.lan...@googlegroups.com, pytho...@python.org, Laurie Lugrin

Giovanni Funchal

unread,
Feb 1, 2012, 4:24:44 PM2/1/12
to comp.lan...@googlegroups.com, pytho...@python.org, Laurie Lugrin
Wow, that's very flattering :-)

I've opened an item in the python bug tracker for this enhancement and
attached my patch, let's see how it goes.

Thanks,
-- Giovanni



On Sat, Jan 28, 2012 at 4:04 PM, Miki Tebeka <miki....@gmail.com> wrote:
> IMO the code is good enough to submit a patch.
> --
> http://mail.python.org/mailman/listinfo/python-list
0 new messages