Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2246)

Unified Diff: chrome/common/extensions/docs/server2/patch_servlet_test.py

Issue 218363002: Docs: Use ETags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/server2/patch_servlet_test.py
diff --git a/chrome/common/extensions/docs/server2/patch_servlet_test.py b/chrome/common/extensions/docs/server2/patch_servlet_test.py
index 0dcebaa29ba8b8d44681f07cc7917427a384796d..11d028958c354aaaab280d4f52f974478424b759 100755
--- a/chrome/common/extensions/docs/server2/patch_servlet_test.py
+++ b/chrome/common/extensions/docs/server2/patch_servlet_test.py
@@ -73,8 +73,9 @@ class PatchServletTest(unittest.TestCase):
'''
patched_response = self._RenderWithPatch(path, issue)
unpatched_response = self._RenderWithoutPatch(path)
- patched_response.headers.pop('cache-control', None)
- unpatched_response.headers.pop('cache-control', None)
+ for header in ('Cache-Control', 'ETag'):
+ patched_response.headers.pop(header, None)
+ unpatched_response.headers.pop(header, None)
unpatched_content = unpatched_response.content.ToString()
# Check that all links in the patched content are qualified with
« no previous file with comments | « chrome/common/extensions/docs/server2/local_renderer.py ('k') | chrome/common/extensions/docs/server2/preview.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698