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 f44eaa4 commit 607c8feCopy full SHA for 607c8fe
1 file changed
extractor/src/main/java/org/schabi/newpipe/extractor/downloader/Response.java
@@ -76,7 +76,7 @@ public String latestUrl() {
76
* @return the first value assigned to this header
77
*/
78
@Nullable
79
- public String getHeader(final String name) {
+ public String getHeader(@Nonnull final String name) {
80
// Header lookup is case-insensitive
81
final var values = responseHeaders.getOrDefault(name, List.of());
82
return values.isEmpty() ? null : values.get(0);
0 commit comments