Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add X-PJAX-URL to handle redirects correctly

  • Loading branch information...
commit b85c4497f9170a61f535412cb38e2689055ed935 1 parent 611a688
Koszta Peter Pal authored committed
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/rack/pjax.rb
View
1  lib/rack/pjax.rb
@@ -32,6 +32,7 @@ def call(env)
body = [new_body]
headers['Content-Length'] &&= bytesize(new_body).to_s
+ headers['X-PJAX-URL'] = env['REQUEST_URI'] if env['REQUEST_URI']
end
[status, headers, body]
end
Please sign in to comment.
Something went wrong with that request. Please try again.