Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Refactor base rack response to template

  • Loading branch information...
commit b7bc549451e69fb4d1f6e0c9623f9c7b09e15b0d 1 parent 61026bb
Jim Remsik authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/pig.rb
View
5 lib/pig.rb
@@ -31,7 +31,10 @@ def format(commit)
end
def call(env)
- [200, {"Content-Type" => "text/plain"}, [history]]
+ rack_response_template << [history]
end
+ def rack_response_template
+ [200, {"Content-Type" => "text/plain"}]
+ end
end
Please sign in to comment.
Something went wrong with that request. Please try again.