about summary refs log tree commit diff stats
path: root/src/utils/twtstr.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-08-13 22:48:12 +0200
committerbptato <nincsnevem662@gmail.com>2024-08-13 23:03:41 +0200
commit885a3493b6cad4b4247a200928fe61e41883aaba (patch)
tree2b823ef18043c775f21b8ad723c826ffdc6b2663 /src/utils/twtstr.nim
parent968de41082280dde47bac7c2bb59522284b4c672 (diff)
downloadchawan-885a3493b6cad4b4247a200928fe61e41883aaba.tar.gz
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
Diffstat (limited to 'src/utils/twtstr.nim')
-rw-r--r--src/utils/twtstr.nim2
1 files changed, 2 insertions, 0 deletions
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 =