Browse Source

vendor: update "grpc-gateway" to v1.4.1

Sam Batschelet 7 years ago
parent
commit
f31a02d4c1
2 changed files with 4 additions and 4 deletions
  1. 2 2
      Gopkg.lock
  2. 2 2
      vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/errors.go

+ 2 - 2
Gopkg.lock

@@ -111,8 +111,8 @@
     "runtime/internal",
     "utilities"
   ]
-  revision = "74ba57806b9706edc6e2c9e5854ced57a9cd5ba0"
-  version = "v1.4.0"
+  revision = "92583770e3f01b09a0d3e9bdf64321d8bebd48f2"
+  version = "v1.4.1"
 
 [[projects]]
   name = "github.com/inconshreveable/mousetrap"

+ 2 - 2
vendor/github.com/grpc-ecosystem/grpc-gateway/runtime/errors.go

@@ -1,10 +1,10 @@
 package runtime
 
 import (
+	"context"
 	"io"
 	"net/http"
 
-	"context"
 	"github.com/golang/protobuf/proto"
 	"github.com/golang/protobuf/ptypes"
 	"github.com/golang/protobuf/ptypes/any"
@@ -38,7 +38,7 @@ func HTTPStatusFromCode(code codes.Code) int {
 	case codes.ResourceExhausted:
 		return http.StatusTooManyRequests
 	case codes.FailedPrecondition:
-		return http.StatusBadRequest
+		return http.StatusPreconditionFailed
 	case codes.Aborted:
 		return http.StatusConflict
 	case codes.OutOfRange: