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
Ben Copsey
2010-12-04 13:56:50 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b9269002320326303e3847744fcfe0a876d4b6af
b9269002
1 parent
92b3c01f
Fix urls in new tests
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
Classes/Tests/ASIDownloadCacheTests.m
Classes/Tests/ASIDownloadCacheTests.m
View file @
b926900
...
...
@@ -241,11 +241,11 @@
{
[[
ASIDownloadCache
sharedCache
]
clearCachedResponsesForStoragePolicy
:
ASICacheForSessionDurationCacheStoragePolicy
];
[[
ASIDownloadCache
sharedCache
]
setDefaultCachePolicy
:
ASIUseDefaultCachePolicy
];
ASIHTTPRequest
*
request
=
[
ASIHTTPRequest
requestWithURL
:[
NSURL
URLWithString
:
@"http://a
si
/ASIHTTPRequest/tests/cache-control-max-age-parsing"
]];
ASIHTTPRequest
*
request
=
[
ASIHTTPRequest
requestWithURL
:[
NSURL
URLWithString
:
@"http://a
llseeing-i.com
/ASIHTTPRequest/tests/cache-control-max-age-parsing"
]];
[
request
setDownloadCache
:[
ASIDownloadCache
sharedCache
]];
[
request
startSynchronous
];
request
=
[
ASIHTTPRequest
requestWithURL
:[
NSURL
URLWithString
:
@"http://a
si
/ASIHTTPRequest/tests/cache-control-max-age-parsing"
]];
request
=
[
ASIHTTPRequest
requestWithURL
:[
NSURL
URLWithString
:
@"http://a
llseeing-i.com
/ASIHTTPRequest/tests/cache-control-max-age-parsing"
]];
[
request
setDownloadCache
:[
ASIDownloadCache
sharedCache
]];
[
request
startSynchronous
];
BOOL
success
=
[
request
didUseCachedResponse
];
...
...
Please
register
or
login
to post a comment