|
@@ -3,7 +3,6 @@ package middleware
|
|
|
import (
|
|
import (
|
|
|
"context"
|
|
"context"
|
|
|
"encoding/json"
|
|
"encoding/json"
|
|
|
- "fmt"
|
|
|
|
|
"net/url"
|
|
"net/url"
|
|
|
"strconv"
|
|
"strconv"
|
|
|
|
|
|
|
@@ -52,11 +51,6 @@ func GrpcValue(handler middleware.Handler) middleware.Handler {
|
|
|
if len(referer) > 0 {
|
|
if len(referer) > 0 {
|
|
|
ctx = context2.AppendToContext(ctx, "referer", referer[0])
|
|
ctx = context2.AppendToContext(ctx, "referer", referer[0])
|
|
|
}
|
|
}
|
|
|
- body := md.Get("body")
|
|
|
|
|
- if len(body) > 0 {
|
|
|
|
|
- fmt.Println(body)
|
|
|
|
|
- ctx = context2.AppendToContext(ctx, "body", body[0])
|
|
|
|
|
- }
|
|
|
|
|
uri := md.Get("uri")
|
|
uri := md.Get("uri")
|
|
|
if len(uri) > 0 {
|
|
if len(uri) > 0 {
|
|
|
ctx = context2.AppendToContext(ctx, "uri", uri[0])
|
|
ctx = context2.AppendToContext(ctx, "uri", uri[0])
|