diff options
Diffstat (limited to 'net/tools')
-rw-r--r-- | net/tools/crash_cache/crash_cache.cc | 2 | ||||
-rw-r--r-- | net/tools/testserver/testserver.py | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/net/tools/crash_cache/crash_cache.cc b/net/tools/crash_cache/crash_cache.cc index 9d6f3d6..00b0248 100644 --- a/net/tools/crash_cache/crash_cache.cc +++ b/net/tools/crash_cache/crash_cache.cc @@ -285,7 +285,7 @@ int SlaveCode(const std::wstring& path, RankCrashes action) { int main(int argc, const char* argv[]) { // Setup an AtExitManager so Singleton objects will be destructed. - base::AtExitManager at_exit_manager; + base::AtExitManager at_exit_manager; if (argc < 2) return MasterCode(); diff --git a/net/tools/testserver/testserver.py b/net/tools/testserver/testserver.py index acbfd67..d0e7927 100644 --- a/net/tools/testserver/testserver.py +++ b/net/tools/testserver/testserver.py @@ -27,7 +27,7 @@ import tlslite import tlslite.api import pyftpdlib.ftpserver -SERVER_HTTP = 0 +SERVER_HTTP = 0 SERVER_FTP = 1 debug_output = sys.stderr @@ -410,11 +410,11 @@ class TestPageHandler(BaseHTTPServer.BaseHTTPRequestHandler): def WriteFile(self): """This is handler dumps the content of POST request to a disk file into the data_dir/dump. Sub-directories are not supported.""" - + prefix='/writefile/' if not self.path.startswith(prefix): return False - + file_name = self.path[len(prefix):] # do not allow fancy chars in file name @@ -426,13 +426,13 @@ class TestPageHandler(BaseHTTPServer.BaseHTTPRequestHandler): f = open(path, "wb") f.write(request); f.close() - + self.send_response(200) self.send_header('Content-type', 'text/html') self.end_headers() self.wfile.write('<html>%s</html>' % file_name) return True - + def EchoTitleHandler(self): """This handler is like Echo, but sets the page title to the request.""" @@ -1013,7 +1013,7 @@ def main(options, args): server.data_dir = MakeDataDir() MakeDumpDir(server.data_dir) - + # means FTP Server else: my_data_dir = MakeDataDir() @@ -1069,4 +1069,4 @@ if __name__ == '__main__': options, args = option_parser.parse_args() sys.exit(main(options, args)) - + |