This repository was archived by the owner on Nov 22, 2018. It is now read-only.
File tree 2 files changed +4
-4
lines changed
src/Microsoft.AspNetCore.StaticFiles
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<configuration >
3
3
<packageSources >
4
- <add key =" AspNetVNext " value =" https://www .myget.org/F/aspnetcidev /api/v3/index.json" />
4
+ <add key =" AspNetCore " value =" https://dotnet .myget.org/F/aspnetcore-ci-dev /api/v3/index.json" />
5
5
<add key =" NuGet" value =" https://api.nuget.org/v3/index.json" />
6
6
</packageSources >
7
7
</configuration >
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ private void ComputeIfMatch()
173
173
_ifMatchState = PreconditionState . PreconditionFailed ;
174
174
foreach ( var etag in ifMatch )
175
175
{
176
- if ( etag . Equals ( EntityTagHeaderValue . Any ) || etag . Equals ( _etag ) )
176
+ if ( etag . Equals ( EntityTagHeaderValue . Any ) || etag . Compare ( _etag , useStrongComparison : true ) )
177
177
{
178
178
_ifMatchState = PreconditionState . ShouldProcess ;
179
179
break ;
@@ -188,7 +188,7 @@ private void ComputeIfMatch()
188
188
_ifNoneMatchState = PreconditionState . ShouldProcess ;
189
189
foreach ( var etag in ifNoneMatch )
190
190
{
191
- if ( etag . Equals ( EntityTagHeaderValue . Any ) || etag . Equals ( _etag ) )
191
+ if ( etag . Equals ( EntityTagHeaderValue . Any ) || etag . Compare ( _etag , useStrongComparison : true ) )
192
192
{
193
193
_ifNoneMatchState = PreconditionState . NotModified ;
194
194
break ;
@@ -273,7 +273,7 @@ private void ComputeRange()
273
273
ignoreRangeHeader = true ;
274
274
}
275
275
}
276
- else if ( ifRangeHeader . EntityTag != null && ! _etag . Equals ( ifRangeHeader . EntityTag ) )
276
+ else if ( ifRangeHeader . EntityTag != null && ! ifRangeHeader . EntityTag . Compare ( _etag , useStrongComparison : true ) )
277
277
{
278
278
ignoreRangeHeader = true ;
279
279
}
You can’t perform that action at this time.
0 commit comments