lib/micropub/server/rails/middleware.rb in micropub-server-rails-0.1.1 vs lib/micropub/server/rails/middleware.rb in micropub-server-rails-0.1.2

- old
+ new

@@ -4,12 +4,19 @@ @app = app end def call(env) if env["PATH_INFO"] == "/micropub" - [200, { "Content-Type" => "text/plain; charset=utf-8" }, ["I am micropub"]] + [200, self.headers, ["I am micropub."]] else @app.call env end + end + + def headers + { + "Location" => "http://bookisworthy.com/posts/1", + "Content-Type" => "text/plain; charset=utf-8" + } end end end