Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: missing encoding on readFile call #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MikeRalphson
Copy link

Makes the loading of the ai-plugin.json work.

@@ -46,7 +46,7 @@ app.get('/logo.png', (req, res) => {
app.get('/.well-known/ai-plugin.json', (req, res) => {
console.log("Trying to load plugin.json");
const host = req.headers.host;
fs.readFile('./.well-known/ai-plugin.json', (err, text) => {
fs.readFile('./.well-known/ai-plugin.json', 'utf8', (err, text) => {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had utf-8 before and it was not working, I removed it and then it started working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants