diff --git a/context.go b/context.go index bed3b36e14..ace1e3dcdf 100644 --- a/context.go +++ b/context.go @@ -155,6 +155,10 @@ func newWorkerDummyContext(w *worker) (*frankenPHPContext, error) { } } + if fc.requestURI == "" { + fc.requestURI = r.URL.RequestURI() + } + splitCgiPath(fc) return fc, nil diff --git a/testdata/worker-boot-request-uri.php b/testdata/worker-boot-request-uri.php new file mode 100644 index 0000000000..72615c2d56 --- /dev/null +++ b/testdata/worker-boot-request-uri.php @@ -0,0 +1,14 @@ +