25888f0d83
Which might happen when given `HttpHeader` is null. It might be null when most generic constructor `#PreEncodedHttpField(HttpHeader, String, String)` is invoked with a null argument or when `#PreEncodedHttpField(String, String)` constructor is used. Later is valuable for custom headers. NPE happens because of an attempt to call `HttpHeader#asString()` on a null argument. This commit fixes the problem by making encoders use specified header name, instead of trying to retrieve it from the `HttpHeader` object. Signed-off-by: lutovich <konstantin.lutovich@neo4j.com> |
||
---|---|---|
.. | ||
src | ||
pom.xml |