|
|
@@ -5,14 +5,11 @@ import (
|
|
|
"net/http"
|
|
|
"strings"
|
|
|
|
|
|
- "github.com/go-kratos/kratos/v2/errors"
|
|
|
-
|
|
|
+ "github.com/go-kratos/kratos/v2/encoding"
|
|
|
"github.com/go-kratos/kratos/v2/encoding/json"
|
|
|
- "google.golang.org/grpc/encoding"
|
|
|
+ "github.com/go-kratos/kratos/v2/errors"
|
|
|
|
|
|
- // init encoding
|
|
|
- _ "google.golang.org/grpc/encoding/gzip"
|
|
|
- _ "google.golang.org/grpc/encoding/proto"
|
|
|
+ _ "github.com/go-kratos/kratos/v2/transport"
|
|
|
)
|
|
|
|
|
|
func ErrHandle(w http.ResponseWriter, r *http.Request, err error) {
|