Browse Source

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

Dominik Picheta 12 years ago
parent
commit
67648db8c8
1 changed files with 1 additions and 1 deletions
  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)