Response type for Stream is an interface

This commit is contained in:
Asim 2016-04-26 15:52:08 +01:00
parent b0bc806a57
commit decb70b97c

View File

@ -82,7 +82,9 @@ func extractEndpoint(method reflect.Method) *registry.Endpoint {
return nil
}
if rspType.Kind() == reflect.Func {
// are we dealing with a stream?
switch rspType.Kind() {
case reflect.Func, reflect.Interface:
stream = true
}