mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2024-12-13 22:00:32 +05:30
Code improvement
This commit is contained in:
parent
4ee270fe01
commit
080d1e318d
@ -123,12 +123,10 @@ public class Request {
|
|||||||
* Any default headers that the implementation may have, <b>should</b> be overridden by these.
|
* Any default headers that the implementation may have, <b>should</b> be overridden by these.
|
||||||
*/
|
*/
|
||||||
public Builder headers(@Nullable Map<String, List<String>> headers) {
|
public Builder headers(@Nullable Map<String, List<String>> headers) {
|
||||||
if (headers == null) {
|
|
||||||
this.headers.clear();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
this.headers.clear();
|
this.headers.clear();
|
||||||
|
if (headers != null) {
|
||||||
this.headers.putAll(headers);
|
this.headers.putAll(headers);
|
||||||
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user