Permalink
Browse files

Resource files are loaded correctly for Ajax requests

  • Loading branch information...
1 parent 564c06f commit 74abc3a3aebff78dbd523158a14e5c48f14120ef @dpp dpp committed Sep 5, 2012
@@ -522,7 +522,9 @@ object Req {
*/
def nil = new Req(NilPath, "", GetRequest, Empty, null,
System.nanoTime, System.nanoTime, false,
- () => ParamCalcInfo(Nil, Map.empty, Nil, Empty), Map())
+ () => ParamCalcInfo(Nil, Map.empty, Nil, Empty), Map()) {
+ override lazy val standardRequest_? = false
+ }
def parsePath(in: String): ParsePath = {
val p1 = fixURI((in match {case null => "/"; case s if s.length == 0 => "/"; case s => s}).replaceAll("/+", "/"))
@@ -1628,7 +1628,8 @@ for {
inS.doWith(true) {
val statefulRequest = doStatefulRewrite(request)
withReq(statefulRequest) {
- _originalRequest.set(Full(statefulRequest))
+ // set the request for standard requests
+ if (statefulRequest.standardRequest_?) _originalRequest.set(Full(statefulRequest))
_nest2InnerInit(f)
}

0 comments on commit 74abc3a

Please sign in to comment.