templates/ruby/example/spec/helpers/faastruby.rb in faastruby-0.4.1 vs templates/ruby/example/spec/helpers/faastruby.rb in faastruby-0.4.2

- old
+ new

@@ -50,10 +50,10 @@ when text headers["Content-Type"] ||= "text/plain" resp_body = text when yaml headers["Content-Type"] ||= "application/yaml" - resp_body = yaml.to_yaml + resp_body = yaml.is_a?(String) ? yaml : yaml.to_yaml when body headers["Content-Type"] ||= "application/octet-stream" resp_body = raw when js headers["Content-Type"] ||= "text/javascript"