Just as for content-type: application/json
in
✨
No availability to send json response for specific .wellk-nown items.
Active
you might want your response to be served with content-type: text/plain
for certain paths. For example the .well-known/security.txt
file should be served with this media type.
1. Create a path with the name security.txt and the value:
# Our security address
Contact: security@example.com
Encryption: https://example.com/pgp-key.txt
2. Visit https://yoursite.com/.well-known/security.txt and inspect the response. The response headers contains:
content-type: text/html; charset=UTF-8
Add additional options for the Response type select list. We could add a few that might come in handy in some future scenario.
Proposed options:
You might even put these options in wellknown.settings.yml
under a new variable:
paths: [ ]
response_types:
-
label: 'Text/html'
value: 'text/html'
-
label: 'Text/plain'
value: 'text/plain'
-
label: 'Application/json'
value: 'application/json'
-
label: 'Application/ld+json'
value: 'application/ld+json'
-
label: 'Application/xml'
value: 'application/xml'
This way you could easily add additional response types without opening an issue in this modules issue queue.
wellknown.settings.yml
Additional options available in the Response type select element implemented in ✨ No availability to send json response for specific .wellk-nown items. Active .
None.
Potentially new config value in wellknown.settings.yml
; response_types
. New config value needs to be added to wellknown.schema.yml
.
Needs review
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
No activities found.