chore: fix grammatical errors and improve text clarity (#25171)

This commit is contained in:
Jammy Arkens
2025-08-14 15:09:13 +00:00
committed by GitHub
parent e01dd61fd2
commit 9e1a4a9bef
13 changed files with 27 additions and 27 deletions
+2 -2
View File
@@ -48,7 +48,7 @@ type Server struct {
// CustomGRPCHeaderMatcher for mapping request headers to
// GRPC metadata.
// HTTP headers that start with 'Grpc-Metadata-' are automatically mapped to
// gRPC metadata after removing prefix 'Grpc-Metadata-'. We can use this
// gRPC metadata after removing the prefix 'Grpc-Metadata-'. We can use this
// CustomGRPCHeaderMatcher if headers don't start with `Grpc-Metadata-`
func CustomGRPCHeaderMatcher(key string) (string, bool) {
switch strings.ToLower(key) {
@@ -227,7 +227,7 @@ func newErrorResponse(code int, err string) errorResponse {
return errorResponse{Code: code, Error: err}
}
// writeErrorResponse prepares and writes a HTTP error
// writeErrorResponse prepares and writes an HTTP error
// given a status code and an error message.
func writeErrorResponse(w http.ResponseWriter, status int, err string) {
w.Header().Set("Content-Type", "application/json")