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
Joseph Heenan
2013-12-02 02:22:18 -0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
022a3947a67378ccfbedd0bc0f665fa9b75aa3d5
022a3947
2 parents
ecfd9c47
2d210193
Merge pull request #380 from AriX/master
Restored compatibility with OS X 10.5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
Classes/ASIHTTPRequest.m
Classes/ASIHTTPRequest.m
View file @
022a394
...
...
@@ -4867,7 +4867,15 @@ 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
{
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
return
[
date
addTimeInterval
:
maxAge
];
#pragma clang diagnostic pop
}
}
else
{
NSString
*
expires
=
[
responseHeaders
objectForKey
:
@"Expires"
];
if
(
expires
)
{
...
...
Please
register
or
login
to post a comment