feat: send x-goog-user-project header
This commit is contained in:
1 parent
90be148aa9
commit
6938a0de02
3 files changed
+16
No files matched your search
@@ -53,6 +53,10 @@ module Google
|
||||
# @return [void]
|
||||
def prepare!
|
||||
set_xgac
|
||||
if options&.authorization.respond_to? :quota_project_id
|
||||
quota_project_id = options.authorization.quota_project_id
|
||||
header['X-Goog-User-Project'] = quota_project_id if quota_project_id
|
||||
end
|
||||
if options && options.api_format_version
|
||||
header['X-Goog-Api-Format-Version'] = options.api_format_version.to_s
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user