Преглед изворни кода

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

Dominik Picheta пре 12 година
родитељ
комит
09727da533
1 измењених фајлова са 1 додато и 1 уклоњено
  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)