| author | Stephen Paul Weber
<singpolyma@singpolyma.net> 2026-05-26 20:42:54 UTC |
| committer | Stephen Paul Weber
<singpolyma@singpolyma.net> 2026-05-26 20:42:54 UTC |
| parent | 935369f33f953bf87fb3505498452f24d5cb7f48 |
| borogove/Client.hx | +1 | -1 |
diff --git a/borogove/Client.hx b/borogove/Client.hx index a602b0b..1cd8a25 100644 --- a/borogove/Client.hx +++ b/borogove/Client.hx @@ -1041,7 +1041,7 @@ trace("YYZZXX memberUpdates", chat.chatId, memberUpdates.length); if (slot == null) { prepareAttachmentFor(source, services.slice(1), hashes, callback); } else { - tink.http.Client.fetch(slot.put, { method: PUT, headers: slot.putHeaders.concat([new tink.http.Header.HeaderField("Content-Length", source.size)]), body: tink.io.Source.RealSourceTools.idealize(source.tinkSource(), (e) -> { trace("WUT", e); throw e; }) }).all() + tink.http.Client.fetch(slot.put, { method: PUT, headers: slot.putHeaders.concat([new tink.http.Header.HeaderField("Content-Length", source.size)]), body: tink.io.Source.RealSourceTools.idealize(source.tinkSource(), (e) -> { trace("prepareAttachmentFor ERROR", e); throw e; }) }).all() .handle((o) -> switch o { case Success(res) if (res.header.statusCode == 201): callback(new ChatAttachment(source.name, source.type, source.size, [slot.get], hashes));