Fixes #3829 - Avoid sending empty trailer frames for http/2 responses.
Added guard against the supplier of trailers returning null. Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
parent
a2011abec0
commit
9f84c1cb8e
|
@ -215,6 +215,8 @@ public class HttpTransportOverHTTP2 implements HttpTransport
|
|||
if (supplier == null)
|
||||
return null;
|
||||
HttpFields trailers = supplier.get();
|
||||
if (trailers == null)
|
||||
return null;
|
||||
return trailers.size() == 0 ? null : trailers;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue