Commit 5ed21d7e authored by shishir suman's avatar shishir suman
Browse files

adding header for "x-goog-resumable"

Showing with 1 addition and 0 deletions
+1 -0
......@@ -112,6 +112,7 @@ class StorageService {
println("storage object created")
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)
val blobInfo = BlobInfo.newBuilder(BlobId.of(getContainerName, objectName)).build
println("blob object created")
val expiryTime = if(ttl > 7) 7 else ttl
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment