Skip to content

Commit 2a32861

Browse files
committed
fix on windows
1 parent 3708b41 commit 2a32861

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cgi.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ func splitCgiPath(fc *frankenPHPContext) {
213213
// If a worker is already assigned explicitly, derive SCRIPT_NAME from its filename
214214
if fc.worker != nil {
215215
fc.scriptFilename = fc.worker.fileName
216-
fc.scriptName = strings.TrimPrefix(fc.worker.fileName, fc.documentRoot)
216+
fc.scriptName = filepath.ToSlash(strings.TrimPrefix(fc.worker.fileName, fc.documentRoot))
217217
return
218218
}
219219

0 commit comments

Comments
 (0)