File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
template/ruby-http/function Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ Edit the `homepage/handler.rb` file to return some HTML:
1515class Handler
1616 def run (body , headers )
1717 status_code = 200 # Optional status code, defaults to 200
18- response_headers = {" content-type" : " text/html" }
18+ response_headers = {" content-type" => " text/html" }
1919 body = " <html>Hello world from the Ruby template</html>"
2020
2121 return body, response_headers, status_code
Original file line number Diff line number Diff line change 11class Handler
22 def run ( body , headers )
33 status_code = 200 # Optional status code, defaults to 200
4- response_headers = { "content-type" : "text/plain" }
4+ response_headers = { "content-type" => "text/plain" }
55 body = "Hello world from the Ruby template"
66
77 return body , response_headers , status_code
You can’t perform that action at this time.
0 commit comments