Update 'README.md'
This commit is contained in:
parent
bc8750daf7
commit
20559149eb
|
@ -96,7 +96,7 @@ app = Hyde::Server.new do
|
||||||
path "important" do
|
path "important" do
|
||||||
preprocess do |req|
|
preprocess do |req|
|
||||||
# Implement logging logic here
|
# Implement logging logic here
|
||||||
puts "Client at #{req.headers['REMOTE_ADDR']} wanted to access something /important!"
|
puts "Client at #{req.headers['remote-addr']} wanted to access something /important!"
|
||||||
end
|
end
|
||||||
get "answer" do
|
get "answer" do
|
||||||
header "content-type", "application/json"
|
header "content-type", "application/json"
|
||||||
|
|
Loading…
Reference in New Issue