You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
is2ei
changed the title
URL parameter "format=html" is not acceptable option
URL parameter "format=html" causes error
May 21, 2022
is2ei
changed the title
URL parameter "format=html" causes error
URL parameter "format=html" causes an error
May 21, 2022
is2ei
changed the title
URL parameter "format=html" causes an error
URL parameter "format=html" causes an error "options.render is not a function"
May 21, 2022
Prerequisites
Fastify version
3.29.0
Plugin version
5.0.2
Node.js version
16.14.2
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
20.04.0
Description
The option
list.format=html
requireslist.render
.https://github.com/fastify/fastify-static#listformat
The problem is that it is possible to pass
list.format=html
using the URL parameter even thoughlist.render
option is not given.Steps to Reproduce
@fastify/static
withlist: true
.?format=html
.short example:
error example:
I created an example on stackblitz: https://stackblitz.com/edit/node-hdvl2e?file=index.js
Expected Behavior
I guess we have some options.
list.render
withlist.format=json
.?format=html
in URL parameter.?format=html
.The text was updated successfully, but these errors were encountered: