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
2008-08-10 09:29:13 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d001857f7284854066e29a299bda515dc2986e62
d001857f
1 parent
652a3a76
Fix naughty find and replace crapsplosion
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
ASIHTTPRequest.m
asi-http-request.xcodeproj/ben.mode1v3
asi-http-request.xcodeproj/ben.pbxuser
ASIHTTPRequest.m
View file @
d001857
...
...
@@ -192,13 +192,13 @@ static void ReadStreamClientCallBack(CFReadStreamRef readStream, CFStreamEventTy
}
//Adds files to upload
NSData
*
content
Blueprint
Header
=
[[
NSString
stringWithString
:
@"Content-Type: application/octet-stream
\r\n\r\n
"
]
dataUsingEncoding
:
NSUTF8StringEncoding
];
NSData
*
content
Type
Header
=
[[
NSString
stringWithString
:
@"Content-Type: application/octet-stream
\r\n\r\n
"
]
dataUsingEncoding
:
NSUTF8StringEncoding
];
e
=
[
fileData
keyEnumerator
];
i
=
0
;
while
(
key
=
[
e
nextObject
])
{
NSString
*
filePath
=
[
fileData
objectForKey
:
key
];
[
postBody
appendData
:[[
NSString
stringWithFormat
:
@"Content-Disposition: form-data; name=
\"
%@
\"
; filename=
\"
%@
\"\r\n
"
,
key
,[
filePath
lastPathComponent
]]
dataUsingEncoding
:
NSUTF8StringEncoding
]];
[
postBody
appendData
:
content
Blueprint
Header
];
[
postBody
appendData
:
content
Type
Header
];
[
postBody
appendData
:[
NSData
dataWithContentsOfMappedFile
:
filePath
]];
i
++
;
if
(
i
!=
[
fileData
count
])
{
//Only add the boundary if this is not the last item in the post body
...
...
asi-http-request.xcodeproj/ben.mode1v3
View file @
d001857
...
...
@@ -334,7 +334,7 @@
<key>
_historyCapacity
</key>
<integer>
0
</integer>
<key>
bookmark
</key>
<string>
B567EF
2F0E4EDC06
001E238F
</string>
<string>
B567EF
390E4EDE4A
001E238F
</string>
<key>
history
</key>
<array>
<string>
B5731B8B0E4310180008024F
</string>
...
...
@@ -570,11 +570,12 @@
<integer>
5
</integer>
<key>
WindowOrderList
</key>
<array>
<string>
1C530D57069F1CE1000CFCEE
</string>
<string>
B567EF0F0E4EDB31001E238F
</string>
<string>
B567EF100E4EDB31001E238F
</string>
<string>
B5ABC8410E24CDE70072F422
</string>
<string>
1CD10A99069EF8BA00B06720
</string>
<string>
1C78EAAD065D492600B07095
</string>
<string>
1CD10A99069EF8BA00B06720
</string>
<string>
/Users/ben/asi-http-request/asi-http-request.xcodeproj
</string>
</array>
<key>
WindowString
</key>
...
...
@@ -810,14 +811,12 @@
<key>
Dock
</key>
<array>
<dict>
<key>
BecomeActive
</key>
<true/>
<key>
ContentConfiguration
</key>
<dict>
<key>
PBXProjectModuleGUID
</key>
<string>
1CDD528C0622207200134675
</string>
<key>
PBXProjectModuleLabel
</key>
<string>
ASIHTTPRequest.m
</string>
<string></string>
<key>
StatusBarVisibility
</key>
<true/>
</dict>
...
...
@@ -838,6 +837,8 @@
<string>
212pt
</string>
</dict>
<dict>
<key>
BecomeActive
</key>
<true/>
<key>
ContentConfiguration
</key>
<dict>
<key>
PBXProjectModuleGUID
</key>
...
...
@@ -873,8 +874,8 @@
<key>
TableOfContents
</key>
<array>
<string>
1C530D57069F1CE1000CFCEE
</string>
<string>
B5
0FD7100E3B83F3003CEB08
</string>
<string>
B5
0FD7110E3B83F3003CEB08
</string>
<string>
B5
67EF350E4EDE05001E238F
</string>
<string>
B5
67EF360E4EDE05001E238F
</string>
<string>
1CDD528C0622207200134675
</string>
<string>
1CD0528E0623707200166675
</string>
</array>
...
...
asi-http-request.xcodeproj/ben.pbxuser
View file @
d001857
This diff is collapsed. Click to expand it.
Please
register
or
login
to post a comment