     end
 
     conn
-    |> merge_resp_headers(%{"content-type" => "application/json"})
     |> json(Enum.map(1..q, fn _ ->
       w = Repo.get(World, :rand.uniform(10000))
       changeset = World.changeset(w, %{randomNumber: :rand.uniform(10000)})
       Repo.update(changeset)
-      w end))
+      w
+    end))
   end
 
   def plaintext(conn, _params) do
     conn
-    |> merge_resp_headers(%{"content-type" => "text/plain"})
     |> text("Hello, world!")
   end
 end

    end

    conn
    |> merge_resp_headers(%{"content-type" => "application/json"})
    |> json(Enum.map(1..q, fn _ -> Repo.get(World, :rand.uniform(10000)) end))
  end



  def index(conn, _params) do
    conn
    |> json(%{"TE Benchmarks\n" => "Started"})
  end

  # avoid namespace collision
  def _json(conn, _params) do
    conn
    |> json(%{message: "Hello, world!"})
  end

  def db(conn, _params) do
    conn
    |> json(Repo.get(World, :rand.uniform(10000)))
  end

