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-07-17 14:16:33 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8160d683b7155d1ddaeed450dc9d6234ffd2e728
8160d683
1 parent
162ca98d
Fix 304 test
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
Classes/ASIHTTPRequest.m
Classes/Tests/ASIDownloadCacheTests.m
Classes/ASIHTTPRequest.m
View file @
8160d68
...
...
@@ -23,7 +23,7 @@
// Automatically set on build
NSString
*
ASIHTTPRequestVersion
=
@"v1.7-
15
2010-07-17"
;
NSString
*
ASIHTTPRequestVersion
=
@"v1.7-
22
2010-07-17"
;
NSString
*
const
NetworkRequestErrorDomain
=
@"ASIHTTPRequestErrorDomain"
;
...
...
Classes/Tests/ASIDownloadCacheTests.m
View file @
8160d68
...
...
@@ -231,7 +231,7 @@
request
=
[
ASIHTTPRequest
requestWithURL
:[
NSURL
URLWithString
:
@"http://asi/ASIHTTPRequest/tests/the_great_american_novel_(abridged).txt"
]];
[
request
setDownloadCache
:[
ASIDownloadCache
sharedCache
]];
[
request
startSynchronous
];
BOOL
success
=
([
request
responseStatusCode
]
==
304
);
BOOL
success
=
([
request
responseStatusCode
]
==
200
);
GHAssertTrue
(
success
,
@"Failed to perform a conditional get"
);
success
=
[
request
didUseCachedResponse
];
...
...
Please
register
or
login
to post a comment