this file was copied from twisted. there has to be a better solution. try to replace it with the standard library (http.client.parse_headers() ?) or a very common one like requests or webob.
original ticket : https://www.cubicweb.org/ticket/17268416
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information