On 2010-05-12 11:05:33 PM, Matt Domsch wrote:
OK, having spent a few more hours, I don't need the RewriteRule. Yea!
I just need to convert to unicode, and leave it in unicode. Malformed requests fail lookups as would be expected and return the "you asked for an invalid repo or arch" message. Good requests return the mirrorlist. All is swimmingly.
commit 9251a20e8ff8239bae2c74e64ad20a4645423ae9 Author: Matt Domsch Matt_Domsch@dell.com Date: Wed May 12 22:59:46 2010 -0500
mirrorlist_client: leave query params as utf8
diff --git a/mirrorlist-server/mirrorlist_client.wsgi b/mirrorlist-server/mirrorlist_client.wsgi index 3508f19..36077a1 100755 --- a/mirrorlist-server/mirrorlist_client.wsgi +++ b/mirrorlist-server/mirrorlist_client.wsgi @@ -93,7 +93,7 @@ def request_setup(request):
for k, v in d.iteritems(): try:
d[k] = unicode(v, 'utf8', 'ignore').encode('utf8')
return dd[k] = unicode(v, 'utf8', 'replace') except: pass
+1
Thanks for looking at this, Ricky