From a7c2fb1a9644d573b4801ef2ba5062ae87dbe6aa Mon Sep 17 00:00:00 2001 From: Eduardo Gurgel Date: Sat, 14 Dec 2019 18:50:47 +1300 Subject: [PATCH] Fix PingHandler --- lib/poxa/ping_handler.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/poxa/ping_handler.ex b/lib/poxa/ping_handler.ex index 49b744d..488aadb 100644 --- a/lib/poxa/ping_handler.ex +++ b/lib/poxa/ping_handler.ex @@ -9,8 +9,8 @@ defmodule Poxa.PingHandler do @doc false def handle(req, state) do - {:ok, req} = :cowboy_req.reply(200, [], "Pong!", req) - Logger.info("Ping requested") + req = :cowboy_req.reply(200, %{"content-type" => "text/plain"}, "Hello World!", req) + Logger.debug("Ping requested") {:ok, req, state} end