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-01-19 14:07:00 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9f713623ba0966cc74856634dd63670aabb1e001
9f713623
1 parent
c87d8ae2
Fix test urls
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
Classes/Tests/ASIHTTPRequestTests.m
Classes/Tests/ASIHTTPRequestTests.m
View file @
9f71362
...
...
@@ -324,7 +324,7 @@
BOOL
success
;
unsigned
int
i
;
for
(
i
=
301
;
i
<
305
;
i
++
)
{
NSURL
*
url
=
[
NSURL
URLWithString
:[
NSString
stringWithFormat
:
@"http://a
si
/ASIHTTPRequest/tests/redirect/%hi"
,
i
]];
NSURL
*
url
=
[
NSURL
URLWithString
:[
NSString
stringWithFormat
:
@"http://a
llseeing-i.com
/ASIHTTPRequest/tests/redirect/%hi"
,
i
]];
request
=
[
ASIHTTPRequest
requestWithURL
:
url
];
[
request
setShouldRedirect
:
NO
];
[
request
startSynchronous
];
...
...
@@ -353,7 +353,7 @@
// Test RFC 2616 behaviour
for
(
i
=
301
;
i
<
303
;
i
++
)
{
NSURL
*
url
=
[
NSURL
URLWithString
:[
NSString
stringWithFormat
:
@"http://a
si
/ASIHTTPRequest/tests/redirect/%hi"
,
i
]];
NSURL
*
url
=
[
NSURL
URLWithString
:[
NSString
stringWithFormat
:
@"http://a
llseeing-i.com
/ASIHTTPRequest/tests/redirect/%hi"
,
i
]];
request2
=
[
ASIFormDataRequest
requestWithURL
:
url
];
[
request2
setPostValue
:
@"Giant Monkey"
forKey
:
@"lookbehindyou"
];
[
request2
setShouldUseRFC2616RedirectBehaviour
:
YES
];
...
...
Please
register
or
login
to post a comment