diff --git a/core/src/main/scala/org/http4s/grpc/ServerGrpc.scala b/core/src/main/scala/org/http4s/grpc/ServerGrpc.scala index a7b4c6f..147909e 100644 --- a/core/src/main/scala/org/http4s/grpc/ServerGrpc.scala +++ b/core/src/main/scala/org/http4s/grpc/ServerGrpc.scala @@ -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]