[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/hyperdrive cbe2a28041 03/26: Fix: (h/write) Encode metadat
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/hyperdrive cbe2a28041 03/26: Fix: (h/write) Encode metadata JSON as UTF-8 |
Date: |
Fri, 30 Aug 2024 16:00:07 -0400 (EDT) |
branch: elpa/hyperdrive
commit cbe2a28041c0a98eff6726fdb11698bb05257877
Author: Joseph Turner <joseph@ushin.org>
Commit: Joseph Turner <joseph@ushin.org>
Fix: (h/write) Encode metadata JSON as UTF-8
Previously, the JSON object was uploaded with the internal Emacs
representation.
---
hyperdrive-lib.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/hyperdrive-lib.el b/hyperdrive-lib.el
index 8300034c35..756db45326 100644
--- a/hyperdrive-lib.el
+++ b/hyperdrive-lib.el
@@ -1325,7 +1325,9 @@ DEFAULT and INITIAL-INPUT are passed to `read-string'
as-is."
(declare (indent defun))
(let ((entry (he/create :hyperdrive hyperdrive
:path "/.well-known/host-meta.json")))
- (h/write entry :body (json-encode (h/metadata hyperdrive))
+ ;; TODO: Is it okay to always encode the JSON object as UTF-8?
+ (h/write entry :body (encode-coding-string
+ (json-encode (h/metadata hyperdrive)) 'utf-8)
:then then)
hyperdrive))
- [nongnu] elpa/hyperdrive 6874248ed5 16/26: Fix: (hyperdrive-write-buffer) Clean up encoded buffer, (continued)
- [nongnu] elpa/hyperdrive 6874248ed5 16/26: Fix: (hyperdrive-write-buffer) Clean up encoded buffer, ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive 0043faa8c7 17/26: Fix: (hyperdrive-write-buffer) Get file size from encoded buffer, ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive 0702f40645 19/26: Comment: Add TODO, ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive ab77599b03 23/26: Tidy: (CHANGELOG), ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive 417c43a429 21/26: Change: (h//gateway-stop-default) Make longer timeout, ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive 15a83a252e 06/26: Change: (h/write) Clarify BODY argument type in docstring, ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive 60763306a0 12/26: Meta: Update changelog, ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive e09ead79c4 15/26: Comment: Add FIXME, ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive 40475d9d13 22/26: Change: (hyperdrive-menu) Change description to "..." from "starting", ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive 4d10e5584b 25/26: WIP: (hyperdrive--gateway-stop-default) Make asynchronous, ELPA Syncer, 2024/08/30
- [nongnu] elpa/hyperdrive cbe2a28041 03/26: Fix: (h/write) Encode metadata JSON as UTF-8,
ELPA Syncer <=
- [nongnu] elpa/hyperdrive c05904f585 26/26: Change: Hook up new gateway-stopping code, ELPA Syncer, 2024/08/30