-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Labels
Description
Hi everyone)
I'm not sure if it should be fixed but with some of our IP cameras, we had a problem with Authorization, because of lowerCase headers.
final class RtspHeaders {
public static final String ACCEPT = "accept";
public static final String ALLOW = "allow";
...
I have reverted changes to normal case (Accept, ...) and now it works correctly.
Also, I have changed this code in RtspHeaders:
public Builder add(String headerName, String headerValue) {
// namesAndValuesBuilder.put(Ascii.toLowerCase(headerName.trim()), headerValue.trim());
namesAndValuesBuilder.put(headerName.trim(), headerValue.trim());
return this;
}
public ImmutableList<String> values(String headerName) {
//return namesAndValues.get(Ascii.toLowerCase(headerName));
return namesAndValues.get(headerName);
}
If it makes sense you can add these changes to repo))
Reactions are currently unavailable