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

Do not require a handler function in the gateway #9264

Merged
merged 5 commits into from
Jul 23, 2021

Conversation

rkapka
Copy link
Contributor

@rkapka rkapka commented Jul 23, 2021

What type of PR is this?

Bug fix

What does this PR do? Why is it needed?

Passing h.ServeHTTP(w, req) did not turn out to be a sensible default handler as it causes an infinite loop. A better approach is to make the handler optional.

Which issues(s) does this PR fix?

Fixes #9246

Other notes for review

N/A

@rkapka rkapka requested a review from a team as a code owner July 23, 2021 13:58
@rkapka rkapka requested review from kasey, jmozah and rauljordan and removed request for a team July 23, 2021 13:58
@rkapka rkapka added API Api related tasks Ready For Review labels Jul 23, 2021
@codecov
Copy link

codecov bot commented Jul 23, 2021

Codecov Report

Merging #9264 (d693fe9) into develop (c0076cc) will decrease coverage by 0.03%.
The diff coverage is 25.00%.

@@             Coverage Diff             @@
##           develop    #9264      +/-   ##
===========================================
- Coverage    60.88%   60.85%   -0.04%     
===========================================
  Files          550      550              
  Lines        39413    39411       -2     
===========================================
- Hits         23998    23983      -15     
- Misses       11914    11935      +21     
+ Partials      3501     3493       -8     

@prylabs-bulldozer prylabs-bulldozer bot merged commit be82c87 into develop Jul 23, 2021
@delete-merged-branch delete-merged-branch bot deleted the optional-handler-func branch July 23, 2021 16:48
rkapka added a commit that referenced this pull request Jul 26, 2021
prylabs-bulldozer bot pushed a commit that referenced this pull request Jul 26, 2021
prestonvanloon pushed a commit that referenced this pull request Jul 30, 2021
* Do not require a handler function in the gateway

* test fix

Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
(cherry picked from commit be82c87)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Api related tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improperly formatted rpc-curl-calls crashes the beacon-node [a security concern]
2 participants