Skip to content

Commit

Permalink
sinatra headers only accept string hash keys
Browse files Browse the repository at this point in the history
Signed-off-by: Alexis Reigel <mail@koffeinfrei.org>
  • Loading branch information
koffeinfrei authored and alexellis committed Oct 21, 2019
1 parent 5be7639 commit c863232
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Edit the `homepage/handler.rb` file to return some HTML:
class Handler
def run(body, headers)
status_code = 200 # Optional status code, defaults to 200
response_headers = {"content-type": "text/html"}
response_headers = {"content-type" => "text/html"}
body = "<html>Hello world from the Ruby template</html>"

return body, response_headers, status_code
Expand Down
2 changes: 1 addition & 1 deletion template/ruby-http/function/handler.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class Handler
def run(body, headers)
status_code = 200 # Optional status code, defaults to 200
response_headers = {"content-type": "text/plain"}
response_headers = {"content-type" => "text/plain"}
body = "Hello world from the Ruby template"

return body, response_headers, status_code
Expand Down

0 comments on commit c863232

Please sign in to comment.