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

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

Issue 14125010: Docserver: Add support for viewing docs with a codereview patch applied (Closed) Base URL: https://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 7 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/servlet.py
===================================================================
--- chrome/common/extensions/docs/server2/servlet.py (revision 198562)
+++ chrome/common/extensions/docs/server2/servlet.py (working copy)
@@ -90,6 +90,9 @@
def SetStatus(self, status):
self.status = status
+ def IsRedirect(self):
+ return 'Location' in self.headers
+
def __repr__(self):
return '{content: %s bytes, status: %s, headers: %s entries}' % (
len(self.content), self.status, len(self.headers.keys()))

Powered by Google App Engine
This is Rietveld 408576698