Skip to content

adding header for storage_upload and storage_download#8

Open
shubhangi-google wants to merge 7 commits into
mainfrom
add_accept_encoding_gzip_for_media_operation_only
Open

adding header for storage_upload and storage_download#8
shubhangi-google wants to merge 7 commits into
mainfrom
add_accept_encoding_gzip_for_media_operation_only

Conversation

@shubhangi-google
Copy link
Copy Markdown
Owner

No description provided.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds the Accept-Encoding: gzip header to storage upload and download commands in base_service.rb and includes corresponding unit tests. The review feedback identifies a bug in the storage upload specification where an assignment operator was used instead of a comparison, and suggests improving the precision and robustness of header assertions in the service and download test suites.

Comment thread google-apis-core/spec/google/apis/core/storage_upload_spec.rb Outdated
Comment thread google-apis-core/spec/google/apis/core/service_spec.rb Outdated
Comment thread google-apis-core/spec/google/apis/core/storage_download_spec.rb Outdated
@shubhangi-google
Copy link
Copy Markdown
Owner Author

/gemini review

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds the Accept-Encoding: gzip header to storage upload and download commands in google-apis-core and includes corresponding test updates. The review feedback highlights that the current implementation for setting the header is case-sensitive, which could lead to duplicate headers if a user provides a lowercase key; a case-insensitive check is recommended. Furthermore, a consistency issue was noted in the test suite where one test case accesses the header directly on the command instead of through its options.

Comment thread google-apis-core/lib/google/apis/core/base_service.rb Outdated
Comment thread google-apis-core/lib/google/apis/core/base_service.rb Outdated
Comment thread google-apis-core/spec/google/apis/core/service_spec.rb Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants