Skip to content

RTSP headers #9182

@a-blekot

Description

@a-blekot

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))

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions