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 e96af0e commit 6bbca3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/puppy/platforms/linux/platform.nim
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ proc internalFetch*(req: Request): Response {.raises: [PuppyError].} =
let arr = headerLine.split(":", 1)
if arr.len == 2:
when (NimMajor, NimMinor, NimPatch) >= (1, 4, 8):
result.add((arr[0].strip(), arr[1].strip()))
result.headers.add((arr[0].strip(), arr[1].strip()))
else:
let tmp = cast[ptr HttpHeaders](result.headers.addr)
tmp[].toBase.add((arr[0].strip(), arr[1].strip()))
Expand Down
2 changes: 1 addition & 1 deletion src/puppy/platforms/win32/platform.nim
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ proc internalFetch*(req: Request): Response {.raises: [PuppyError].} =
let parts = line.split(":", 1)
if parts.len == 2:
when (NimMajor, NimMinor, NimPatch) >= (1, 4, 8):
result.add((parts[0].strip(), parts[1].strip()))
result.headers.add((parts[0].strip(), parts[1].strip()))
else:
let tmp = cast[ptr HttpHeaders](result.headers.addr)
tmp[].toBase.add((parts[0].strip(), parts[1].strip()))
Expand Down

0 comments on commit 6bbca3a

Please sign in to comment.