| OLD | NEW |
| 1 // Test server to facilitate the data reduction proxy Telemetry tests. | 1 // Test server to facilitate the data reduction proxy Telemetry tests. |
| 2 // | 2 // |
| 3 // The server runs at http://chromeproxy-test.appspot.com/. Please contact | 3 // The server runs at http://chromeproxy-test.appspot.com/. Please contact |
| 4 // people in OWNERS for server issues. | 4 // people in OWNERS for server issues. |
| 5 // | 5 // |
| 6 // For running an AppEngine Go server, see: | 6 // For running an AppEngine Go server, see: |
| 7 // https://developers.google.com/appengine/docs/go/gettingstarted/introduction. | 7 // https://developers.google.com/appengine/docs/go/gettingstarted/introduction. |
| 8 // | 8 // |
| 9 // The goal is to keep the test logic on the client side (Telemetry) | 9 // The goal is to keep the test logic on the client side (Telemetry) |
| 10 // as much as possible. This server will only return a resource | 10 // as much as possible. This server will only return a resource |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 return false, nil | 150 return false, nil |
| 151 } | 151 } |
| 152 | 152 |
| 153 func writeFromFile(w io.Writer, filename string) (int64, error) { | 153 func writeFromFile(w io.Writer, filename string) (int64, error) { |
| 154 f, err := os.Open(filename) | 154 f, err := os.Open(filename) |
| 155 if err != nil { | 155 if err != nil { |
| 156 return 0, err | 156 return 0, err |
| 157 } | 157 } |
| 158 return io.Copy(w, f) | 158 return io.Copy(w, f) |
| 159 } | 159 } |
| OLD | NEW |