prysm-pulse/beacon-chain/rpc
Jim McDonald 5256751e8b
Trim SSE event names. (#9342)
* Trim SSE event names.

When sending SSE events the event name contains trailing whitespace.
This patch removes the whitespace before processing the event, ensuring
it is easily parsed by clients.

* Separate test.

* Test receiveEvents, not writeEvent.

Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2021-08-11 23:00:39 +00:00
..
apimiddleware Trim SSE event names. (#9342) 2021-08-11 23:00:39 +00:00
eth Fixes Issues Found by Goland IDE Code Inspect (#9368) 2021-08-11 20:12:22 +00:00
prysm/v1alpha1 Fixes Issues Found by Goland IDE Code Inspect (#9368) 2021-08-11 20:12:22 +00:00
statefetcher Clean up duplicated imports (#9354) 2021-08-10 14:55:24 -05:00
testutil State: move state interfaces into state package (#9268) 2021-07-23 16:11:21 +00:00
BUILD.bazel Eliminate Proto V2 Namespace (#9297) 2021-07-28 21:23:44 +00:00
log.go Unify the pattern of using a package-level logger (#8245) 2021-01-11 20:03:28 +00:00
service_test.go Embed Config Pattern For Attestation, POW Chain, and RPC Services (#8635) 2021-03-21 16:58:41 +00:00
service.go Make SubmitAttestations v1 implementation similar to v1alpha1 (#9319) 2021-08-05 08:01:20 +00:00