From 885a3493b6cad4b4247a200928fe61e41883aaba Mon Sep 17 00:00:00 2001 From: bptato Date: Tue, 13 Aug 2024 22:48:12 +0200 Subject: xhr: progress * fix header case sensitivity issues -> probably still wrong as it discards the original casing. better than nothing, anyway * fix fulfill on generic promises * support standard open() async parameter weirdness * refactor loader response body reading (so bodyRead is no longer mandatory) * actually read response body still missing: response body getters --- src/utils/twtstr.nim | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/utils/twtstr.nim') diff --git a/src/utils/twtstr.nim b/src/utils/twtstr.nim index c41b545f..75f70ad3 100644 --- a/src/utils/twtstr.nim +++ b/src/utils/twtstr.nim @@ -36,6 +36,8 @@ func toHeaderCase*(s: string): string = for c in result.mitems: if flip: c = c.toUpperAscii() + else: + c = c.toLowerAscii() flip = c == '-' func snakeToKebabCase*(s: string): string = -- cgit 1.4.1-2-gfad0