2005-08-25 | paulb | raw annotate files changeset graph | [project @ 2005-08-25 22:39:52 by paulb] Changed the default path encoding to UTF-8. Whilst this takes some liberties, it is likely that UTF-8 is a reasonable default, and the underlying default of ISO-8859-1 provides a fair level of safety. |
1 --- Adapters/CGIAdapter.py 2005-08-25 01:09:02.759432184 +0200 2 +++ Adapters/CGIAdapter.py 2005-08-25 01:09:05.778973144 +0200 3 @@ -48,7 +48,7 @@ 4 msvcrt.setmode(sys.stdin.fileno(), os.O_BINARY) 5 6 myInput = '' 7 - if os.environ.has_key('CONTENT_LENGTH'): 8 + if os.environ.has_key('CONTENT_LENGTH') and os.environ['CONTENT_LENGTH']: 9 length = int(os.environ['CONTENT_LENGTH']) 10 myInput = myInput + sys.stdin.read(length) 11