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
2009-12-19 11:56:11 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5ff3c8fc0db1d9380a4d4df67271e5bc2ced884c
5ff3c8fc
1 parent
3baa2178
Tweaks
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
Classes/ASIFormDataRequest.m
Classes/ASIHTTPRequest.m
Classes/ASIFormDataRequest.m
View file @
5ff3c8f
...
...
@@ -276,7 +276,7 @@
NSError
*
err
=
nil
;
unsigned
long
long
fileSize
=
[[[[
NSFileManager
defaultManager
]
attributesOfItemAtPath
:
file
error
:
&
err
]
objectForKey
:
NSFileSize
]
unsignedLongLongValue
];
if
(
err
)
{
[
self
addToDebugBody
:[
NSString
stringWithFormat
:
@"[Error: Failed to obtain the
fil
e of the file at '%@']"
,
file
]];
[
self
addToDebugBody
:[
NSString
stringWithFormat
:
@"[Error: Failed to obtain the
siz
e of the file at '%@']"
,
file
]];
}
else
{
[
self
addToDebugBody
:[
NSString
stringWithFormat
:
@"[%llu bytes of data from file '%@']"
,
fileSize
,
file
]];
}
...
...
Classes/ASIHTTPRequest.m
View file @
5ff3c8f
...
...
@@ -612,7 +612,9 @@ static BOOL isiPhoneOS2;
-
(
void
)
applyAuthorizationHeader
{
// Do we want to send credentials before we are asked for them?
if
([
self
shouldPresentCredentialsBeforeChallenge
])
{
if
(
!
[
self
shouldPresentCredentialsBeforeChallenge
])
{
return
;
}
// First, see if we have any credentials we can use in the session store
NSDictionary
*
credentials
=
nil
;
...
...
@@ -656,7 +658,6 @@ static BOOL isiPhoneOS2;
}
}
}
}
}
-
(
void
)
buildRequestHeaders
...
...
Please
register
or
login
to post a comment