Skip to content

Commit 47e9c0a

Browse files
committed
Add PostGzip arg to UploadAsset func
1 parent fbf5480 commit 47e9c0a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/cls/GitHub/API.cls

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,9 +460,10 @@ Method DownloadAssetsContent(BrowserDownloadURL As %String, Output Assets) As %S
460460
Return st
461461
}
462462

463-
Method UploadAsset(Owner As %String, Repo As %String, ReleaseId As %Integer, Asset As %ZEN.proxyObject, Stream As %AbstractStream) As %Status
463+
Method UploadAsset(Owner As %String, Repo As %String, ReleaseId As %Integer, Asset As %ZEN.proxyObject, Stream As %AbstractStream, PostGzip As %Boolean = 0) As %Status
464464
{
465465
Set ..Request.Server = "uploads.github.com"
466+
Set ..Request.PostGzip = PostGzip
466467

467468
Do ..Request.SetParam("Content-Type", Asset."Content-Type")
468469
Do ..Request.SetParam("name", Asset.name)
@@ -475,6 +476,7 @@ Method UploadAsset(Owner As %String, Repo As %String, ReleaseId As %Integer, Ass
475476
Set st = ..Request.Post()
476477

477478
Set ..Request.Server= ..#Server
479+
Set ..Request.PostGzip = 0
478480

479481
return st
480482
}

0 commit comments

Comments
 (0)