Skip to content

Commit

Permalink
3822: Fixed setDisableGZipContent call (#4314)
Browse files Browse the repository at this point in the history
* 3822: Fixed setDisableGZipContent call

* 3822: Changes after review
  • Loading branch information
andrey-qlogic authored and sduskis committed Jan 10, 2019
1 parent b9aeb1b commit 6b37bc5
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,9 @@ public StorageObject create(
new InputStreamContent(storageObject.getContentType(), content));
insert.getMediaHttpUploader().setDirectUploadEnabled(true);
Boolean disableGzipContent = Option.IF_DISABLE_GZIP_CONTENT.getBoolean(options);
if (disableGzipContent != null)
insert.getMediaHttpUploader().setDisableGZipContent(disableGzipContent);
if (disableGzipContent != null) {
insert.setDisableGZipContent(disableGzipContent);
}
setEncryptionHeaders(insert.getRequestHeaders(), ENCRYPTION_KEY_PREFIX, options);
return insert
.setProjection(DEFAULT_PROJECTION)
Expand Down

0 comments on commit 6b37bc5

Please sign in to comment.