|
@@ -189,7 +189,8 @@ public class GoogleCloudStorageHttpHandler implements HttpHandler {
|
|
|
exchange.sendResponseHeaders(RestStatus.OK.getStatus(), response.length);
|
|
|
exchange.getResponseBody().write(response);
|
|
|
} else {
|
|
|
- exchange.sendResponseHeaders(RestStatus.BAD_REQUEST.getStatus(), -1);
|
|
|
+ throw new AssertionError("Could not read multi-part request to [" + request + "] with headers ["
|
|
|
+ + new HashMap<>(exchange.getRequestHeaders()) + "]");
|
|
|
}
|
|
|
|
|
|
} else if (Regex.simpleMatch("POST /upload/storage/v1/b/" + bucket + "/*uploadType=resumable*", request)) {
|