Skip to content

Providing nil as a value to template resp*(...): typed, will crash jester  #133

@zacharycarter

Description

@zacharycarter

Steps to reproduce:

  1. Create a route like this:
routes:
  get "/bug":
    resp(nil)

Send a http request to the endpoint - jester crashes.

I believe the problem is somewhere in this function -
https://github.com/dom96/jester/blob/master/jester.nim#L87-L94

Nim version info:

Nim Compiler Version 0.17.3 [MacOSX: amd64]
Copyright (c) 2006-2018 by Andreas Rumpf

git hash: 70e8640244e48e8d62c5af42101c9df2b57224d9
active boot switches: -d:release

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions