Skip to content

Commit

Permalink
Minor: Rephrase a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
vikin91 authored Oct 11, 2023
1 parent 117a319 commit edfdea9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit edfdea9

Please sign in to comment.