Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

"Respond with content coming from a File containing templates" not working #211

@UlliBien

Description

@UlliBien

I tried the example for "Respond with content coming from a File containing templates". The callback method "processor(..)" is never called.

request->send(SPIFFS, "/index.htm", String(), false, processor); initializes a new intance of AsyncAbstractResponse class (AsyncFileResponse is derived from AsyncAbstractResponse). Field _chunked is set to true by the constructor. Via some other methods AsyncAbstractResponse::_ack(..) is called.

The problem is that _ack(..) does not call method AsyncAbstractResponse::_fillBufferAndProcessTemplates(..) which calls _callback(..) if _chunked is set to true. But it should! It calls _fillBuffer(..) instead. :-(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions