Fix the stale logging rule and drop go test from the README
This commit is contained in:
+3
-2
@@ -71,8 +71,9 @@ This service runs in Kubernetes behind a TLS-terminating ingress.
|
||||
- All upload code paths must enforce `maxUploadSize` via
|
||||
`http.MaxBytesReader`, and clean up any partially written file/directory
|
||||
on failure.
|
||||
- New HTTP handlers must call `logRequest` with an accurate status code for
|
||||
every response path.
|
||||
- New HTTP handlers must write an explicit status code on every response
|
||||
path. The `withLogging` middleware records what `responseRecorder` actually
|
||||
saw, so a handler that returns without writing is logged as a 200.
|
||||
- Keep the JSON error shape for `/upload` consistent with
|
||||
`writeMultipartError` (`{"error": "..."}`).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user