Skip to content

fix(http1): return generic 500 body and log error server-side - #47

Merged
alshdavid merged 2 commits into
mainfrom
agent/auto-flash/94636a431620
Oct 19, 2026
Merged

alshdavid merged 2 commits into
mainfrom
agent/auto-flash/94636a431620

Conversation

@alshdavid

Copy link
Copy Markdown
Owner

Fixes #38

handle_error previously echoed the raw anyhow error to clients, leaking internal paths and panic messages. It now returns a generic 500 Internal Server Error body and logs the full error (with context chain) to stderr.

# Conflicts:
#	src/platform/http1/http1_server.rs
@alshdavid
alshdavid merged commit d730626 into main Oct 19, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

handle_error sends the raw anyhow error to the client

1 participant