Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion handwritten/storage/src/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2309,7 +2309,11 @@ class File extends ServiceObject<File, FileMetadata> {
// A simple upload reports a failed request as a stream error, so its
// credentials are verified before the stream is used. A resumable
// upload verifies its own.
if (options.resumable === false) {
if (
options.resumable === false &&
(!this.storage.customEndpoint ||
this.storage.useAuthWithCustomEndpoint)
) {
await assertUniverseDomain(
this.storageTransport.authClient,
this.storage.universeDomain,
Expand Down
Loading
Loading