« Previous | Next » 

Revision a4e9c19c

IDa4e9c19c8eead340c51eae58c991c027f486c343

Added by Christos Stavrakakis about 10 years ago

plankton: Fix handling of HTTP headers

Handle properly image properties that are passed through HTTP headers.
We convert the request headers to image properties by unquoting them and
then decoding them to Unicode objects using 'utf-8' encoding. Image keys
are lowered and all punctuation characters are converted to underscore.
Respectively, we convert image properties to HTTP headers by encoding
them to bytestrings and then properly quoting them.

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences