﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
30310	New HTTPRequest.headers not usable in templates because of hyphens	Mark Tranchant	Troon	"With the release of 2.2, I took the opportunity from the new [https://docs.djangoproject.com/en/2.2/ref/request-response/#django.http.HttpRequest.headers HTTPRequest.headers object] to clean up old code using e.g. `request.META['HTTP_X_REAL_IP']` to `request.headers['X-Real-IP']`.

However, this new approach does not work with templates, as [https://docs.djangoproject.com/en/2.2/ref/templates/api/#variables-and-lookups variable lookups cannot use hyphens].

Could the object contain a parallel set of keys in underscored variables? e.g. `request.headers['foo-bar']` is also available in `request.headers['foo_bar']` and can be looked up with `{{ request.headers.foo_bar }}` in a template?"	New feature	closed	HTTP handling	2.2	Normal	fixed	request headers hyphen template		Ready for checkin	1	0	0	0	0	0
