-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove obsolete upload route (#1251)
POSTing to `/storage/v1/b/my-bucket/o` to upload an object is not supposed to work. The Google Cloud Storage API returns a 400 error with a response body like this: ```json { "error": { "code": 400, "message": "Uploads must be sent to the upload URL. Re-send this request to https://storage.googleapis.com/upload/storage/v1/b/my-bucket/o?uploadType=media&name=test.txt", "errors": [ { "message": "Uploads must be sent to the upload URL. Re-send this request to https://storage.googleapis.com/upload/storage/v1/b/my-bucket/o?uploadType=media&name=test.txt", "domain": "global", "reason": "wrongUrlForUpload" } ] } } ``` To stay true to the GCS API, we remove support from the `fake-gcs-server` as well.
- Loading branch information
1 parent
63221c8
commit 94427ae
Showing
2 changed files
with
4 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters