diff --git a/djblets/util/http.py b/djblets/util/http.py
index d8d7e42f7322c32fc887caf8659166faa2d1a665..e148bf4d831e818dc6167556c4f78352523341f0 100644
--- a/djblets/util/http.py
+++ b/djblets/util/http.py
@@ -77,7 +77,7 @@ def etag_if_none_match(request, etag):
     This can be used to bail early if no updates have been performed since
     the last access to the page.
     """
-    return etag == request.META.get('If-None-Match', None)
+    return etag == request.META.get('HTTP_IF_NONE_MATCH', None)
 
 
 def etag_if_match(request, etag):
@@ -86,7 +86,7 @@ def etag_if_match(request, etag):
     is used by PUT requests to to indicate that the update should only happen
     if the specified ETag matches the header.
     """
-    return etag == request.META.get('If-Match', None)
+    return etag == request.META.get('HTTP_IF_MATCH', None)
 
 
 def get_http_accept_lists(request):
