Commit bf1cf13c by ibaker Committed by tonihei

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
parent dd95587c
...@@ -261,7 +261,7 @@ public class WebServerDispatcher extends Dispatcher { ...@@ -261,7 +261,7 @@ public class WebServerDispatcher extends Dispatcher {
Resource resource = checkNotNull(resourcesByPath.get(requestPath)); Resource resource = checkNotNull(resourcesByPath.get(requestPath));
byte[] resourceData = resource.getData(); byte[] resourceData = resource.getData();
if (resource.supportsRangeRequests()) { if (resource.supportsRangeRequests()) {
response.setHeader("Accept-ranges", "bytes"); response.setHeader("Accept-Ranges", "bytes");
} }
@Nullable ImmutableMap<String, Float> acceptEncodingHeader = getAcceptEncodingHeader(request); @Nullable ImmutableMap<String, Float> acceptEncodingHeader = getAcceptEncodingHeader(request);
@Nullable String preferredContentCoding; @Nullable String preferredContentCoding;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment