lib/embork/forwarder.rb in embork-0.0.4 vs lib/embork/forwarder.rb in embork-0.0.5
- old
+ new
@@ -13,11 +13,11 @@
end
def call(env)
status, headers, body = @app.call(env)
if status == 404
- self.class.target.new(@app).call(env)
- else
- [ status, headers, body ]
+ status, headers, body = self.class.target.new(@app).call(env)
+ headers['Push-State-Redirect'] = 'true'
end
+ [ status, headers, body ]
end
end