feat: send x-goog-user-project header

This commit is contained in:
Daniel Azuma authored and GitHub committed 2020-03-06 16:57:20 -08:00
1 parent 90be148aa9
commit 6938a0de02
3 files changed
+16

No files matched your search

+4
View File
@@ -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