mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Fix header name in WebServerDispatcher used for testing
HTTP header names are case-insensitive, but all the others in this file are 'correctly' cased, so we might as well be consistent. PiperOrigin-RevId: 408840566
This commit is contained in:
parent
ded68ed981
commit
f7bb6e0a23
@ -263,7 +263,7 @@ public class WebServerDispatcher extends Dispatcher {
|
||||
Resource resource = checkNotNull(resourcesByPath.get(requestPath));
|
||||
byte[] resourceData = resource.getData();
|
||||
if (resource.supportsRangeRequests()) {
|
||||
response.setHeader("Accept-ranges", "bytes");
|
||||
response.setHeader("Accept-Ranges", "bytes");
|
||||
}
|
||||
@Nullable ImmutableMap<String, Float> acceptEncodingHeader = getAcceptEncodingHeader(request);
|
||||
@Nullable String preferredContentCoding;
|
||||
|
Loading…
x
Reference in New Issue
Block a user