Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
knowledge-platform
Commits
e1c6148e
Commit
e1c6148e
authored
2 years ago
by
shishir suman
Browse files
Options
Download
Patches
Plain Diff
removing header for "x-goog-resumable"
parent
22129b5a
release-5.1.0-content
Gcloud_copy
Gcloud_fix
Remove_unwantedCode_Gcloud_fix
bulk-upload-comptenecy-mapping
bulk-upload-excelsheet
bulk-upload-test_excel
bulk_upload
master
poc_bulk_upload
rahul_bulk_upload_postgres
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
platform-modules/mimetype-manager/src/main/scala/org/sunbird/cloudstore/StorageService.scala
+2
-1
...rc/main/scala/org/sunbird/cloudstore/StorageService.scala
with
2 additions
and
1 deletion
+2
-1
platform-modules/mimetype-manager/src/main/scala/org/sunbird/cloudstore/StorageService.scala
+
2
−
1
View file @
e1c6148e
...
...
@@ -113,6 +113,7 @@ class StorageService {
val
extensionHeaders
=
new
java
.
util
.
HashMap
().
asInstanceOf
[
java.util.Map
[
String
,
String
]]
extensionHeaders
.
putAll
(
Map
(
HttpHeaders
.
CONTENT_TYPE
->
MimeTypes
.
OCTET_STREAM
).
asJava
)
//extensionHeaders.putAll(Map("x-goog-resumable" -> "start").asJava)
println
(
"*** --- Changed code --- *******"
)
val
blobInfo
=
BlobInfo
.
newBuilder
(
BlobId
.
of
(
getContainerName
,
objectName
)).
build
println
(
"blob object created"
)
val
expiryTime
=
if
(
ttl
>
7
)
7
else
ttl
...
...
@@ -120,7 +121,7 @@ class StorageService {
val
url
=
storage
.
signUrl
(
blobInfo
,
expiryTime
,
TimeUnit
.
DAYS
,
Storage
.
SignUrlOption
.
httpMethod
(
HttpMethod
.
PUT
),
Storage
.
SignUrlOption
.
withExtHeaders
(
extensionHeaders
),
Storage
.
SignUrlOption
.
withV4Signature
);
println
(
"url created: "
,
url
)
println
(
"
*************
url created: "
,
url
)
url
.
toString
;
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets