Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rot1024 committed Jan 22, 2025
1 parent d9cfacb commit 3e5e0de
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions server/i18n/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ reviewer should be owner or maintainer: ""
thread is required: ""
title cannot be empty: ""
unauthorized: ""
unsupported content encoding: ""
unsupported entity: ""
unsupported geometry type: ""
unsupported operation: ""
Expand Down
5 changes: 3 additions & 2 deletions server/i18n/ja.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ reviewer should be owner or maintainer: レビュワーはオーナーもしく
thread is required: スレッドは必須です。
title cannot be empty: タイトルは必須です。
unauthorized: 未認証
unsupported entity: サポートされていないエンティティ
unsupported geometry type: サポートされていないジオメトリタイプ
unsupported content encoding: サポートされていないContent-Encodingです。
unsupported entity: サポートされていないエンティティです。
unsupported geometry type: サポートされていないジオメトリタイプです。
unsupported operation: サポートされていない処理です。
uuid is required: UUIDは必須です。
value is required: 値は必須です。
Expand Down
5 changes: 3 additions & 2 deletions server/internal/infrastructure/gcp/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,13 @@ func (f *fileRepo) upload(ctx context.Context, file *file.File) (int64, error) {

writer := object.NewWriter(ctx)
writer.ObjectAttrs.CacheControl = f.cacheControl

if file.ContentType == "" {
writer.ContentEncoding = getContentType(file.Name)
}
if file.ContentType != "" {
} else {
writer.ObjectAttrs.ContentType = file.ContentType
}

if file.ContentEncoding == "gzip" {
writer.ObjectAttrs.ContentEncoding = "gzip"
if writer.ObjectAttrs.ContentType == "" || writer.ObjectAttrs.ContentType == "application/gzip" {
Expand Down
2 changes: 1 addition & 1 deletion server/schemas/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1406,7 +1406,7 @@ paths:
type: string
skipDecompression:
type: boolean
default: false#
default: false
application/json:
schema:
type: object
Expand Down

0 comments on commit 3e5e0de

Please sign in to comment.