Skip to content

Commit

Permalink
Fix PingHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
edgurgel committed Dec 14, 2019
1 parent 0f78085 commit a7c2fb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/poxa/ping_handler.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a7c2fb1

Please sign in to comment.