Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
coder
websocket
Repository navigation
Code
Issues
58
(58)
Pull requests
28
(28)
Actions
Security and quality
Insights
More
items
feat: add ErrorHandler to AcceptOptions
- #588
#588
Draft
1/2
mafredri
wants to merge 19 commits into
master
coder/websocket:master
from
mafredri/accept-error-handler
coder/websocket:mafredri/accept-error-handler
Copy head branch name to clipboard
Conversation
Commits
19
(19)
Checks
Files changed
Draft
feat: add ErrorHandler to AcceptOptions
#588
mafredri
wants to merge 19 commits into
master
coder/websocket:master
from
mafredri/accept-error-handler
coder/websocket:mafredri/accept-error-handler
Copy head branch name to clipboard
Commits
Commits on Nov 20, 2026
test(accept): pin Accept rejection responses
Show description for 1ae130e
mafredri
committed
1ae130e
View commit details
Copy full SHA for 1ae130e
Browse repository at this point
feat: add AcceptOptions.ErrorHandler
Show description for 8ecea00
mafredri
committed
8ecea00
View commit details
Copy full SHA for 8ecea00
Browse repository at this point
refactor(accept.go): rename writeRejection body to defaultBody
Show description for cda2d96
mafredri
committed
cda2d96
View commit details
Copy full SHA for cda2d96
Browse repository at this point
docs(accept.go): state that ErrorHandler err is not for the client
Show description for 537b53e
mafredri
committed
537b53e
View commit details
Copy full SHA for 537b53e
Browse repository at this point
test(accept_test.go): check ErrorHandler is not called on hijack failure
Show description for 9c5d55e
mafredri
committed
9c5d55e
View commit details
Copy full SHA for 9c5d55e
Browse repository at this point
test(accept_test.go): send the server subtest request over a raw conn
Show description for 018bf6b
mafredri
committed
018bf6b
View commit details
Copy full SHA for 018bf6b
Browse repository at this point
test(accept_test.go): check ErrorHandler receives the Accept request
Show description for 659e571
mafredri
committed
659e571
View commit details
Copy full SHA for 659e571
Browse repository at this point
test(accept_test.go): derive default responses from the rejection rows
Show description for 80c08a7
mafredri
committed
80c08a7
View commit details
Copy full SHA for 80c08a7
Browse repository at this point
test(accept_test.go): cover the Origin parse and no-host rejections
Show description for 80979c9
mafredri
committed
80979c9
View commit details
Copy full SHA for 80979c9
Browse repository at this point
docs(accept.go): say only that ErrorHandler err may hold server details
Show description for 3f603d6
mafredri
committed
3f603d6
View commit details
Copy full SHA for 3f603d6
Browse repository at this point
test(accept_test.go): restore why the server subtest uses a real server
Show description for d4bc712
mafredri
committed
d4bc712
View commit details
Copy full SHA for d4bc712
Browse repository at this point
fix(accept): pass the OriginPatterns parse error to ErrorHandler
Show description for 08b2bc2
mafredri
committed
08b2bc2
View commit details
Copy full SHA for 08b2bc2
Browse repository at this point
docs(accept.go): drop the ErrorHandler clause the doc already states
Show description for be4abb8
mafredri
committed
be4abb8
View commit details
Copy full SHA for be4abb8
Browse repository at this point
fix: name OriginPatterns in the invalid pattern error
Show description for a118af0
mafredri
committed
a118af0
View commit details
Copy full SHA for a118af0
Browse repository at this point
test(accept_test.go): fix the badOriginPattern comment
Show description for ac999a2
mafredri
committed
ac999a2
View commit details
Copy full SHA for ac999a2
Browse repository at this point
docs: fix comment sentences that start lowercase or give code intent
Show description for 224f272
mafredri
committed
224f272
View commit details
Copy full SHA for 224f272
Browse repository at this point
docs(accept.go): rewrite the ErrorHandler doc
Show description for a4e0625
mafredri
committed
a4e0625
View commit details
Copy full SHA for a4e0625
Browse repository at this point
docs(accept.go): shorten the Accept error response sentence
Show description for 5f82841
mafredri
committed
5f82841
View commit details
Copy full SHA for 5f82841
Browse repository at this point
Commits on Nov 25, 2026
docs(accept.go): say ErrorHandler err can include server details
Show description for 77aa46a
mafredri
committed
77aa46a
View commit details
Copy full SHA for 77aa46a
Browse repository at this point
You can’t perform that action at this time.