# HG changeset patch # User paulb # Date 1168792803 0 # Node ID 01177141a634e34eaa92d98c42e8808dd1bfae93 # Parent 85d6604970a690e15da60fb02e63a3912b5586c4 [project @ 2007-01-14 16:40:03 by paulb] Fixed get_content_type method for mod_python. Updated release information. diff -r 85d6604970a6 -r 01177141a634 WebStack/ModPython.py --- a/WebStack/ModPython.py Sun Jan 14 16:39:48 2007 +0000 +++ b/WebStack/ModPython.py Sun Jan 14 16:40:03 2007 +0000 @@ -3,7 +3,7 @@ """ mod_python classes. -Copyright (C) 2004, 2005, 2006 Paul Boddie +Copyright (C) 2004, 2005, 2006, 2007 Paul Boddie This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -152,7 +152,7 @@ charset employed. """ - return self.parse_content_type(self.trans.content_type) + return self.parse_content_type(self.trans.headers_in.get("Content-Type")) def get_content_charsets(self): diff -r 85d6604970a6 -r 01177141a634 WebStack/__init__.py --- a/WebStack/__init__.py Sun Jan 14 16:39:48 2007 +0000 +++ b/WebStack/__init__.py Sun Jan 14 16:40:03 2007 +0000 @@ -3,7 +3,7 @@ """ A common API for Python Web applications. -Copyright (C) 2004, 2005, 2006 Paul Boddie +Copyright (C) 2004, 2005, 2006, 2007 Paul Boddie This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -20,6 +20,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA """ -__version__ = "1.2" +__version__ = "1.2.1" # vim: tabstop=4 expandtab shiftwidth=4