|
@@ -21,12 +21,12 @@ func GetFromPath(c context.Context) string {
|
|
|
return ""
|
|
return ""
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func GetBody(c context.Context) []byte {
|
|
|
|
|
|
|
+func GetBody(c context.Context) string {
|
|
|
body := c.Value("body")
|
|
body := c.Value("body")
|
|
|
- if _, ok := body.([]byte); ok {
|
|
|
|
|
- return body.([]byte)
|
|
|
|
|
|
|
+ if _, ok := body.(string); ok {
|
|
|
|
|
+ return body.(string)
|
|
|
}
|
|
}
|
|
|
- return nil
|
|
|
|
|
|
|
+ return ""
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func GetUri(c context.Context) string {
|
|
func GetUri(c context.Context) string {
|