Skip to content

Commit

Permalink
improve: use faster comparison operator
Browse files Browse the repository at this point in the history
  • Loading branch information
i10416 committed Nov 21, 2024
1 parent cb7d8d7 commit b4af1a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/scala/org/http4s/grpc/ServerGrpc.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import scala.concurrent.duration._

object ServerGrpc {
def precondition[F[_]: Monad]: HttpRoutes[F] = HttpRoutes.of[F] {
case req if req.method =!= Method.POST =>
case req if req.method != Method.POST =>
Response(Status.MethodNotAllowed).withHeaders(Allow(Method.POST)).pure[F]
case req if !hasGRPCContentType(req) =>
Response[F](Status.UnsupportedMediaType).pure[F]
Expand Down

0 comments on commit b4af1a8

Please sign in to comment.