Elvelind Grandin wrote:
HTTP Headers are as far as I know case insensitive. so it's a bug in
the older project. I dont think you can force CP into sending
uppercase headers.
Correct. If you want to hack CP into doing it, just grep for ".title()"
in the source and the offending bits should come up fairly easily. If
you're using WSGI, you could also make a piece of middleware, something
like:
class UpperHeaders:
def __init__(self, nextapp):
self.nextapp = nextapp
def __call__(self, environ, start_response):
def upper_sr(status, response_headers, exc_info=None):
response_headers = [(k.upper(), v) for k, v in
response_headers]
return start_response(status, response_headers, exc_info)
return self.nextapp(environ, upper_sr)
Robert Brewer
System Architect
Amor Ministries
[EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---