lib/httpx/plugins/grpc.rb in httpx-1.1.3 vs lib/httpx/plugins/grpc.rb in httpx-1.1.4
- old
+ new
@@ -213,10 +213,10 @@
deadline: DEADLINE,
metadata: nil,
**opts)
grpc_request = build_grpc_request(rpc_method, input, deadline: deadline, metadata: metadata, **opts)
response = request(grpc_request, **opts)
- response.raise_for_status
+ response.raise_for_status unless opts[:stream]
GRPC::Call.new(response)
end
private