UNCLASSIFIED
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Ironbank Tools
ironbank-plugins-pipeline
Commits
e18abee4
Commit
e18abee4
authored
Dec 10, 2020
by
David Freeman
Browse files
add content-encoding when applicable
parent
5f41746e
Pipeline
#99376
passed with stages
in 1 minute and 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
stages/publish/s3_upload.py
stages/publish/s3_upload.py
+12
-1
No files found.
stages/publish/s3_upload.py
View file @
e18abee4
...
...
@@ -28,7 +28,18 @@ def upload_file(file_name, bucket, object_name=None):
mimetype
=
filetype
[
0
]
# TODO: Add signature
extra_args
=
{
"ContentType"
:
mimetype
,
"ACL"
:
"private"
}
if
filetype
[
1
]
is
None
:
extra_args
=
{
"ContentType"
:
mimetype
,
"ACL"
:
"private"
,
}
else
:
encoding
=
filetype
[
1
]
extra_args
=
{
"ContentType"
:
mimetype
,
"ACL"
:
"private"
,
"ContentEncoding"
:
encoding
,
}
# If S3 object_name was not specified, use file_name
if
object_name
is
None
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment