From edfdea990848a8bbcfd1269890aa4eba3c924bfd Mon Sep 17 00:00:00 2001 From: Piotr Rygielski <114479+vikin91@users.noreply.github.com> Date: Wed, 11 Oct 2023 12:50:00 +0200 Subject: [PATCH] Minor: Rephrase a comment --- server/server.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/server/server.go b/server/server.go index f776a92..b9dd356 100644 --- a/server/server.go +++ b/server/server.go @@ -188,9 +188,8 @@ func CreateDowngradingHandler(grpcSrv *grpc.Server, httpHandler http.Handler, op return } - // explicitly set application/grpc content type, - // because underlying grpc library supports only it. - // https://github.com/grpc/grpc-go/blob/9deee9ba5f5b654d38c737c701181dceebb57e44/internal/grpcutil/method.go#L61 + // Internally content type must be application/grpc, + // See: https://github.com/grpc/grpc-go/blob/9deee9b/internal/grpcutil/method.go#L61 req.Header.Set("Content-Type", "application/grpc") handleGRPCWeb(w, req, validGRPCWebPaths, grpcSrv, &serverOpts)