Etag still needs -gzip replacement
This commit is contained in:
@@ -71,8 +71,10 @@ static _Atomic(NSUInteger) _queueSize = 0;
|
|||||||
NSMutableURLRequest *req = [self newRequestURL:meta.url];
|
NSMutableURLRequest *req = [self newRequestURL:meta.url];
|
||||||
if (!flag) {
|
if (!flag) {
|
||||||
// Both fields should be sent (if server provides both) RFC: https://tools.ietf.org/html/rfc7232#section-2.4
|
// Both fields should be sent (if server provides both) RFC: https://tools.ietf.org/html/rfc7232#section-2.4
|
||||||
if (meta.etag.length > 0)
|
if (meta.etag.length > 0) {
|
||||||
[req setValue:meta.etag forHTTPHeaderField:@"If-None-Match"]; // ETag
|
NSString *etag = [meta.etag stringByReplacingOccurrencesOfString:@"-gzip" withString:@""];
|
||||||
|
[req setValue:etag forHTTPHeaderField:@"If-None-Match"]; // ETag
|
||||||
|
}
|
||||||
if (meta.modified.length > 0)
|
if (meta.modified.length > 0)
|
||||||
[req setValue:meta.modified forHTTPHeaderField:@"If-Modified-Since"];
|
[req setValue:meta.modified forHTTPHeaderField:@"If-Modified-Since"];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -70,7 +70,7 @@
|
|||||||
</dict>
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>11491</string>
|
<string>11510</string>
|
||||||
<key>LSApplicationCategoryType</key>
|
<key>LSApplicationCategoryType</key>
|
||||||
<string>public.app-category.news</string>
|
<string>public.app-category.news</string>
|
||||||
<key>LSMinimumSystemVersion</key>
|
<key>LSMinimumSystemVersion</key>
|
||||||
|
|||||||
Reference in New Issue
Block a user