summaryrefslogtreecommitdiffstats
path: root/net/tools
diff options
context:
space:
mode:
authorcreis@google.com <creis@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-25 19:44:19 +0000
committercreis@google.com <creis@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-25 19:44:19 +0000
commitd58a93ae3d8cf81174d4dcbd24fe271659e35dd6 (patch)
tree0008a70066f44da5e1e73a035d32c32e882d5303 /net/tools
parentad2a42ed351f59d8b5cbe40a68d5631d73f24ac5 (diff)
downloadchromium_src-d58a93ae3d8cf81174d4dcbd24fe271659e35dd6.zip
chromium_src-d58a93ae3d8cf81174d4dcbd24fe271659e35dd6.tar.gz
chromium_src-d58a93ae3d8cf81174d4dcbd24fe271659e35dd6.tar.bz2
Clean up unload-related state after the ack is received.
BUG=76666 TEST=RenderViewHostManagerTest.ClickLinkAfter204Error Review URL: http://codereview.chromium.org/6724026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79440 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/tools')
-rwxr-xr-xnet/tools/testserver/testserver.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/net/tools/testserver/testserver.py b/net/tools/testserver/testserver.py
index a222558..36e0a89 100755
--- a/net/tools/testserver/testserver.py
+++ b/net/tools/testserver/testserver.py
@@ -286,6 +286,7 @@ class TestPageHandler(BasePageHandler):
self.AuthDigestHandler,
self.SlowServerHandler,
self.ContentTypeHandler,
+ self.NoContentHandler,
self.ServerRedirectHandler,
self.ClientRedirectHandler,
self.MultipartHandler,
@@ -1070,6 +1071,14 @@ class TestPageHandler(BasePageHandler):
self.wfile.write("<html>\n<body>\n<p>HTML text</p>\n</body>\n</html>\n");
return True
+ def NoContentHandler(self):
+ """Returns a 204 No Content response."""
+ if not self._ShouldHandleRequest("/nocontent"):
+ return False
+ self.send_response(204)
+ self.end_headers()
+ return True
+
def ServerRedirectHandler(self):
"""Sends a server redirect to the given URL. The syntax is
'/server-redirect?http://foo.bar/asdf' to redirect to