Skip to content

Commit 33c8780

Browse files
Copilotjaviercn
andcommitted
Fix additional test files expecting Accept-Ranges headers
Co-authored-by: javiercn <[email protected]>
1 parent 8dd66d1 commit 33c8780

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

test/Microsoft.NET.Sdk.StaticWebAssets.Tests/StaticWebAssetEndpointsIntegrationTest.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ public void Publish_CreatesEndpointsForAssets()
217217
uncompressedAppJsEndpoint.Should().HaveCount(1);
218218
uncompressedAppJsEndpoint.Single().ResponseHeaders.Select(h => h.Name).Should().BeEquivalentTo(
219219
[
220-
"Accept-Ranges",
221220
"Cache-Control",
222221
"Content-Length",
223222
"Content-Type",
@@ -232,7 +231,6 @@ public void Publish_CreatesEndpointsForAssets()
232231
gzipCompressedAppJsEndpoint.Should().HaveCount(1);
233232
gzipCompressedAppJsEndpoint.Single().ResponseHeaders.Select(h => h.Name).Should().BeEquivalentTo(
234233
[
235-
"Accept-Ranges",
236234
"Cache-Control",
237235
"Content-Length",
238236
"Content-Type",
@@ -251,7 +249,6 @@ public void Publish_CreatesEndpointsForAssets()
251249
brotliCompressedAppJsEndpoint.Should().HaveCount(1);
252250
brotliCompressedAppJsEndpoint.Single().ResponseHeaders.Select(h => h.Name).Should().BeEquivalentTo(
253251
[
254-
"Accept-Ranges",
255252
"Cache-Control",
256253
"Content-Length",
257254
"Content-Type",

test/Microsoft.NET.Sdk.StaticWebAssets.Tests/StaticWebAssets/GenerateStaticWebAssetEndpointsPropsFileTest.cs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public void Generates_ValidEndpointsDefinitions()
2626
<AssetFile>$([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\staticwebassets\js\sample.js))</AssetFile>
2727
<Selectors><![CDATA[[{"Name":"Content-Encoding","Value":"gzip","Quality":"0.1"}]]]></Selectors>
2828
<EndpointProperties><![CDATA[[{"Name":"integrity","Value":"__integrity__"}]]]></EndpointProperties>
29-
<ResponseHeaders><![CDATA[[{"Name":"Accept-Ranges","Value":"bytes"},{"Name":"Content-Length","Value":"10"}]]]></ResponseHeaders>
29+
<ResponseHeaders><![CDATA[[{"Name":"Content-Length","Value":"10"}]]]></ResponseHeaders>
3030
</StaticWebAssetEndpoint>
3131
</ItemGroup>
3232
</Project>
@@ -56,11 +56,6 @@ public void Generates_ValidEndpointsDefinitions()
5656
Path.Combine("js", "sample.js"),
5757
Path.GetFullPath(Path.Combine("wwwroot","js","sample.js")),
5858
[
59-
new StaticWebAssetEndpointResponseHeader
60-
{
61-
Name = "Accept-Ranges",
62-
Value = "bytes"
63-
},
6459
new StaticWebAssetEndpointResponseHeader
6560
{
6661
Name = "Content-Length",
@@ -131,11 +126,6 @@ public void Fails_WhenEndpointWithoutAssetExists()
131126
Path.Combine("js", "sample.js").Replace('\\', '/'),
132127
Path.GetFullPath(Path.Combine("wwwroot","js","sample.js")),
133128
[
134-
new StaticWebAssetEndpointResponseHeader
135-
{
136-
Name = "Accept-Ranges",
137-
Value = "bytes"
138-
},
139129
new StaticWebAssetEndpointResponseHeader
140130
{
141131
Name = "Content-Length",

0 commit comments

Comments
 (0)