Open aymericdo opened 6 months ago
Make sure you are running the latest version of TinyWeb before reporting an issue.
Device and/or platform: Raspberry Pico
Description of problem: When I use "save_headers" params in @app.resource, it cause an error because save_headers params are not following here https://github.com/belyalov/tinyweb/blob/master/tinyweb/server.py#L631
@app.resource
Expected: We should be able to use this param with the resource decorator and why not, having back the list of those headers in the data response.
Additional info:
We could just remplace the https://github.com/belyalov/tinyweb/blob/master/tinyweb/server.py#L631 with save_headers=kwargs.pop('save_headers', ['Content-Length', 'Content-Type']), ?
save_headers=kwargs.pop('save_headers', ['Content-Length', 'Content-Type']),
Make sure you are running the latest version of TinyWeb before reporting an issue.
Device and/or platform: Raspberry Pico
Description of problem: When I use "save_headers" params in
@app.resource
, it cause an error because save_headers params are not following here https://github.com/belyalov/tinyweb/blob/master/tinyweb/server.py#L631Expected: We should be able to use this param with the resource decorator and why not, having back the list of those headers in the data response.
Additional info: