Skip to content

"the current responseWriter is not a flusher" when using X-Accel-Redirect #1543

@aleho

Description

@aleho

Implementing X-Accel-Redirect with this simple config:

request_header X-Sendfile-Type x-accel-redirect
request_header X-Accel-Mapping /private-files=

intercept {
	@accel header X-Accel-Redirect *
	handle_response @accel {
		root    * /private-files
		rewrite * {resp.header.X-Accel-Redirect}
		method  * GET

		header -X-Accel-Redirect
		header -X-Accel-Buffering

		file_server
	}
}

php_server

Each response produces this error output:
ERROR frankenphp the current responseWriter is not a flusher {"error": "feature not supported"}

Can anyone confirm / reproduce that?

FrankenPHP: v2.10.0 h1:fonubSaQKF1YANl8TXqGcn4IbIRUDdfAkpcsfI/vX5U=

Originally posted by @aleho in #896 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions