Re: POST JSON vs. urlencoded

Ralf Schlatterbeck <[email protected]>
Newsgroups gmane.comp.bug-tracking.roundup.devel
Message-ID <[email protected]>
On Tue, Apr 02, 2019 at 06:19:37PM -0400, John P. Rouillard wrote:
> Try this patch:
> +            if type(val) == str:

Patch except the quoted line above works fine except that with python2
we need to check for unicode, too, not just "str".
There is a function in anypy/strings.py that I've used for this.
Otherwise I get an error when sending a title with german umlaut
characters in in, e.g.,
title = 'äöüÄÖÜß'

I currently have a customer testing this, so forgive me that I've
committed and pushed the (modified) patch.

Ralf
-- 
Dr. Ralf Schlatterbeck                  Tel:   +43/2243/26465-16
Open Source Consulting                  www:   http://www.runtux.com
Reichergasse 131, A-3411 Weidling       email: [email protected]


_______________________________________________
Roundup-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/roundup-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.