Toggle navigation
Toggle navigation
This project
Loading...
Sign in
iOS
/
asi-http-request
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Ari Weinstein
2013-11-12 12:43:01 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
12173590482970d0e78856497d6a14a29712b406
12173590
1 parent
ecfd9c47
Restored compatibility with OS X 10.5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
Classes/ASIHTTPRequest.m
Classes/ASIHTTPRequest.m
View file @
1217359
...
...
@@ -4867,7 +4867,11 @@ static NSOperationQueue *sharedQueue = nil;
// RFC 2612 says max-age must override any Expires header
if
(
maxAge
)
{
return
[[
NSDate
date
]
dateByAddingTimeInterval
:
maxAge
];
NSDate
*
date
=
[
NSDate
date
];
if
([
date
respondsToSelector
:
@selector
(
dateByAddingTimeInterval
:)])
return
[
date
dateByAddingTimeInterval
:
maxAge
];
else
return
[
date
addTimeInterval
:
maxAge
];
}
else
{
NSString
*
expires
=
[
responseHeaders
objectForKey
:
@"Expires"
];
if
(
expires
)
{
...
...
Please
register
or
login
to post a comment