lib/google/cloud/translate/service.rb in google-cloud-translate-0.22.2 vs lib/google/cloud/translate/service.rb in google-cloud-translate-0.23.0

- old
+ new

@@ -110,10 +110,12 @@ # The default HTTP headers to be sent on all API calls. def default_http_headers @default_http_headers ||= { "User-Agent" => "gcloud-ruby/#{Google::Cloud::Translate::VERSION}", "google-cloud-resource-prefix" => "projects/#{@project}", - "Content-Type" => "application/json" + "Content-Type" => "application/json", + "x-goog-api-client" => "gl-ruby/#{RUBY_VERSION} " \ + "gccl/#{Google::Cloud::Translate::VERSION}" } end ## # Make a request and apply incremental backoff