plum

#treesitter#compiler#wasm

git clone https://git.pyrossh.dev/plum

A statically typed, imperative programming language inspired by rust, python


6e5d12fPeter John 2026-09-07T15:28:24+05:30
fix(http): rebuild emptyHeaders on Map's real init(), not its old fields
Files changed (1) hide show
  1. plum-std/Http.plum +1 -1
plum-std/Http.plum CHANGED
@@ -31,7 +31,7 @@ type Response =
31
31
  return Json.fromStr(self.body)
32
32
 
33
33
  fun emptyHeaders() -> Map[Str, Str] =
34
- return Map[Str, Str](items: List[Pair[Str, Str]](head: None, tail: None, size: 0))
34
+ return Map[Str, Str]()
35
35
 
36
36
  # A single blocking network round trip — this VM has no async/event-loop
37
37
  # mechanism, so `rawHttpRequest` runs to completion before returning (same