Parcourir la source

Set Content-Type as application/json for the Jester benchmark.

Dominik Picheta il y a 12 ans
Parent
commit
09727da533
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      jester/hello.nim

+ 1 - 1
jester/hello.nim

@@ -2,7 +2,7 @@ import jester, strtabs, json, asyncio, sockets
 
 get "/json":
   var obj = %{"message": %"Hello, World!"}
-  resp($obj)
+  resp($obj, "application/json")
 
 var disp = newDispatcher()
 disp.register(port = TPort(9000), http=false)