Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
guzba committed Feb 3, 2024
1 parent 6bbca3a commit cc292a9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/puppy/platforms/macos/platform.nim
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ proc internalFetch*(req: Request): Response {.raises: [PuppyError].} =
let key = keyEnumerator.nextObject
if key.int == 0:
break
let value = dictionary.objectForKey(key)
result.headers.add(($(key.NSString), $(value.NSString)))
let
value = dictionary.objectForKey(key)
tmp = cast[ptr HttpHeaders](result.headers.addr)
tmp[].toBase.add(($(key.NSString), $(value.NSString)))

if data.length > 0:
result.body.setLen(data.length)
Expand Down

0 comments on commit cc292a9

Please sign in to comment.