(self)
| 131 | return SimpleHTTPServer.SimpleHTTPRequestHandler.send_head(self) |
| 132 | |
| 133 | def do_GET(self): |
| 134 | # TODO(binji): pyauto tests use the ?quit=1 method to kill the server. |
| 135 | # Remove this when we kill the pyauto tests. |
| 136 | _, _, _, query, _ = urlparse.urlsplit(self.path) |
| 137 | if query: |
| 138 | params = urlparse.parse_qs(query) |
| 139 | if '1' in params.get('quit', []): |
| 140 | self._SendNothingAndDie() |
| 141 | return |
| 142 | |
| 143 | delegate = self._FindDelegateForURL(self.path) |
| 144 | if delegate: |
| 145 | return delegate.do_GET(self) |
| 146 | return self.base_do_GET() |
| 147 | |
| 148 | def base_do_GET(self): |
| 149 | return SimpleHTTPServer.SimpleHTTPRequestHandler.do_GET(self) |
no test coverage detected