def fix_django_headers(meta):
ret = {}<EOL>for k, v in meta.items():<EOL><INDENT>if k.startswith("<STR_LIT>"):<EOL><INDENT>k = k[len("<STR_LIT>"):]<EOL><DEDENT>elif k not in ("<STR_LIT>", "<STR_LIT>"):<EOL><INDENT>continue<EOL><DEDENT>ret[k.lower().replace("<STR_LIT:_>", "<STR_LIT:->")] = v<EOL><DEDENT>return ret<EOL>
Fix this nonsensical API:
https://docs.djangoproject.com/en/1.11/ref/request-response/
https://code.djangoproject.com/ticket/20147