Skip to content

Commit

Permalink
Merge pull request #157 from edgurgel/fix-ping
Browse files Browse the repository at this point in the history
Fix PingHandler
  • Loading branch information
edgurgel authored Dec 14, 2019
2 parents 7168155 + a7c2fb1 commit 849bbfb
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 849bbfb

Please sign in to comment.