Skip to content

Commit c863232

Browse files
koffeinfreialexellis
authored andcommitted
sinatra headers only accept string hash keys
Signed-off-by: Alexis Reigel <[email protected]>
1 parent 5be7639 commit c863232

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Edit the `homepage/handler.rb` file to return some HTML:
1515
class 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

template/ruby-http/function/handler.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
class 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

0 commit comments

Comments
 (0)