We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1933e94 commit f44eaa4Copy full SHA for f44eaa4
1 file changed
extractor/src/main/java/org/schabi/newpipe/extractor/downloader/Response.java
@@ -2,7 +2,6 @@
2
3
import javax.annotation.Nonnull;
4
import javax.annotation.Nullable;
5
-import java.util.Collections;
6
import java.util.List;
7
import java.util.Map;
8
import java.util.SortedMap;
@@ -79,7 +78,7 @@ public String latestUrl() {
79
78
@Nullable
80
public String getHeader(final String name) {
81
// Header lookup is case-insensitive
82
- final var values = responseHeaders.getOrDefault(name, Collections.emptyList());
+ final var values = responseHeaders.getOrDefault(name, List.of());
83
return values.isEmpty() ? null : values.get(0);
84
}
85
0 commit comments