File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -56,12 +56,11 @@ defmodule GRPC.Server.Transcode do
56
56
Protobuf.JSON . from_decoded ( request , req_mod )
57
57
end
58
58
59
- defp map_request_body ( % { body: "*" } , request_body ) , do: request_body
60
- defp map_request_body ( % { body: "" } , request_body ) , do: request_body
61
-
62
59
defp map_request_body ( % { body: field } , request_body ) ,
63
60
do: % { field => request_body }
64
61
62
+ defp map_request_body ( % { } , request_body ) , do: request_body
63
+
65
64
@ spec map_response_body ( t ( ) | map ( ) , map ( ) ) :: map ( )
66
65
def map_response_body ( % { response_body: "" } , response_body ) , do: response_body
67
66
@@ -70,6 +69,8 @@ defmodule GRPC.Server.Transcode do
70
69
Map . get ( response_body , key )
71
70
end
72
71
72
+ def map_response_body ( % { } , response_body ) , do: response_body
73
+
73
74
@ spec map_path_bindings ( map ( ) ) :: map ( )
74
75
def map_path_bindings ( bindings ) when bindings == % { } , do: bindings
75
76
You can’t perform that action at this time.
0 commit comments