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:
15
15
class Handler
16
16
def run (body , headers )
17
17
status_code = 200 # Optional status code, defaults to 200
18
- response_headers = {" content-type" : " text/html" }
18
+ response_headers = {" content-type" => " text/html" }
19
19
body = " <html>Hello world from the Ruby template</html>"
20
20
21
21
return body, response_headers, status_code
Original file line number Diff line number Diff line change 1
1
class Handler
2
2
def run ( body , headers )
3
3
status_code = 200 # Optional status code, defaults to 200
4
- response_headers = { "content-type" : "text/plain" }
4
+ response_headers = { "content-type" => "text/plain" }
5
5
body = "Hello world from the Ruby template"
6
6
7
7
return body , response_headers , status_code
You can’t perform that action at this time.
0 commit comments