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(chore): Send upstream 50x error instead of failing #441

Merged
merged 1 commit into from
Feb 6, 2024

Conversation

vejipe
Copy link
Collaborator

@vejipe vejipe commented Jan 17, 2024

Related to cache-test.fyi: heuristic-502-not_cached, heuristic-503-not_cached, heuristic-504-not_cached.

At the end of ServeHTTP, if Upstream returns a upstreamError error, the error is returned (e.g., to Caddy) and the server will with 500 Internal server error. Instead, the upstream error should be sent back 50x errors to the client.

@vejipe vejipe force-pushed the fix/chore/send-upstream-error-instead-of-failing branch from 575a8f0 to 501b021 Compare January 17, 2024 13:27
@vejipe vejipe changed the title fix(chore): Send upstream error instead of failing fix(chore): Send upstream 50x error instead of failing Jan 17, 2024
@darkweak darkweak merged commit 66e4f8e into master Feb 6, 2024
18 checks passed
@vejipe vejipe deleted the fix/chore/send-upstream-error-instead-of-failing branch February 6, 2024 12:32
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.

None yet

2 participants