Skip to content

fix: correct content-type for HTML pages and allow password-less redis#418

Merged
ryo-ma merged 2 commits into
ryo-ma:masterfrom
omerarslan0:fix-content-type-and-redis-auth
Mar 4, 2026
Merged

fix: correct content-type for HTML pages and allow password-less redis#418
ryo-ma merged 2 commits into
ryo-ma:masterfrom
omerarslan0:fix-content-type-and-redis-auth

Conversation

@omerarslan0
Copy link
Copy Markdown
Contributor

This fixes two separate issues:

Content-Type (#387)

The index page and error page responses set Content-Type: "text" but
both return HTML content. Changed to text/html so browsers render them
properly.

Redis auth (#388)

When REDIS_PASSWORD is not set, the fallback empty string ("") causes
the driver to send AUTH "" which fails on servers configured without a
password. Changed the fallback to undefined so the driver skips AUTH
entirely when no credentials are provided. Same fix applied to
REDIS_USERNAME.

Fixes #387, fixes #388

Set Content-Type to 'text/html' instead of 'text' for index and
error page responses, since both return HTML content.

Also change redis username/password fallback from empty string to
undefined so that the driver skips AUTH when no credentials are
configured. An empty string causes AUTH to be sent which fails on
servers with no password set.

Fixes #387, fixes #388
@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 15, 2026

@sehawq is attempting to deploy a commit to the ryo-ma's Team Team on Vercel.

A member of the Team first needs to authorize it.

@ryo-ma
Copy link
Copy Markdown
Owner

ryo-ma commented Mar 3, 2026

CI failed. Please confirm.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@omerarslan0
Copy link
Copy Markdown
Contributor Author

Hi @ryo-ma, thanks for flagging the CI failure. The issue was an unintended formatting change (\ instead of ) that caused \ to fail. I've pushed a fix — the CI should pass now.

@ryo-ma ryo-ma merged commit 611e5bf into ryo-ma:master Mar 4, 2026
2 of 3 checks passed
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.

Cannot log into valkey(/redis) server with no password Incorrectly set content type for index & error pages

2 participants