Storage: empty readHost when STORAGE_EMULATOR_HOST is set to host:port #4444
Labels
api: storage
Issues related to the Cloud Storage API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Client
Storage
Environment
Darwin Kernel Version 20.5.0
Go Environment
$ go version
$ go env
Code
Expected behavior
return a reader to the object.
Actual behavior
Fatal with error:
http: no Host in request URL
,URL:
http:///bucket/object
Additional context
I believe this happens after this call. since
WithEndpoint
andWithDefaultEndpoint
have different behaviour inside this function. There might be a modification there.The text was updated successfully, but these errors were encountered: