1.1 --- a/WebStack/Twisted.py Sat Jan 20 23:16:25 2007 +0000
1.2 +++ b/WebStack/Twisted.py Sun Jan 21 00:32:06 2007 +0000
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 Twisted classes.
1.6
1.7 -Copyright (C) 2004, 2005, 2006 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2004, 2005, 2006, 2007 Paul Boddie <paul@boddie.org.uk>
1.9
1.10 This library is free software; you can redistribute it and/or
1.11 modify it under the terms of the GNU Lesser General Public
1.12 @@ -185,6 +185,8 @@
1.13 character values.
1.14 """
1.15
1.16 + encoding = encoding or self.default_charset
1.17 +
1.18 return decode_value("/%s" % "/".join(self.trans.postpath), encoding)
1.19
1.20 def get_query_string(self):
1.21 @@ -217,6 +219,8 @@
1.22 single value is associated with any given field name).
1.23 """
1.24
1.25 + encoding = encoding or self.default_charset
1.26 +
1.27 fields = {}
1.28 for name, values in parse_qs(self.get_query_string(), keep_blank_values=1).items():
1.29 name = decode_value(name, encoding)