« Previous | Next » 

Revision a4e9c19c


Added by Christos Stavrakakis about 7 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.


  • added
  • modified
  • copied
  • renamed
  • deleted

View differences