Showing
3 changed files
with
10 additions
and
9 deletions
| @@ -192,13 +192,13 @@ static void ReadStreamClientCallBack(CFReadStreamRef readStream, CFStreamEventTy | @@ -192,13 +192,13 @@ static void ReadStreamClientCallBack(CFReadStreamRef readStream, CFStreamEventTy | ||
| 192 | } | 192 | } |
| 193 | 193 | ||
| 194 | //Adds files to upload | 194 | //Adds files to upload |
| 195 | - NSData *contentBlueprintHeader = [[NSString stringWithString:@"Content-Type: application/octet-stream\r\n\r\n"] dataUsingEncoding:NSUTF8StringEncoding]; | 195 | + NSData *contentTypeHeader = [[NSString stringWithString:@"Content-Type: application/octet-stream\r\n\r\n"] dataUsingEncoding:NSUTF8StringEncoding]; |
| 196 | e = [fileData keyEnumerator]; | 196 | e = [fileData keyEnumerator]; |
| 197 | i=0; | 197 | i=0; |
| 198 | while (key = [e nextObject]) { | 198 | while (key = [e nextObject]) { |
| 199 | NSString *filePath = [fileData objectForKey:key]; | 199 | NSString *filePath = [fileData objectForKey:key]; |
| 200 | [postBody appendData:[[NSString stringWithFormat:@"Content-Disposition: form-data; name=\"%@\"; filename=\"%@\"\r\n",key,[filePath lastPathComponent]] dataUsingEncoding:NSUTF8StringEncoding]]; | 200 | [postBody appendData:[[NSString stringWithFormat:@"Content-Disposition: form-data; name=\"%@\"; filename=\"%@\"\r\n",key,[filePath lastPathComponent]] dataUsingEncoding:NSUTF8StringEncoding]]; |
| 201 | - [postBody appendData:contentBlueprintHeader]; | 201 | + [postBody appendData:contentTypeHeader]; |
| 202 | [postBody appendData:[NSData dataWithContentsOfMappedFile:filePath]]; | 202 | [postBody appendData:[NSData dataWithContentsOfMappedFile:filePath]]; |
| 203 | i++; | 203 | i++; |
| 204 | if (i != [fileData count]) { //Only add the boundary if this is not the last item in the post body | 204 | if (i != [fileData count]) { //Only add the boundary if this is not the last item in the post body |
| @@ -334,7 +334,7 @@ | @@ -334,7 +334,7 @@ | ||
| 334 | <key>_historyCapacity</key> | 334 | <key>_historyCapacity</key> |
| 335 | <integer>0</integer> | 335 | <integer>0</integer> |
| 336 | <key>bookmark</key> | 336 | <key>bookmark</key> |
| 337 | - <string>B567EF2F0E4EDC06001E238F</string> | 337 | + <string>B567EF390E4EDE4A001E238F</string> |
| 338 | <key>history</key> | 338 | <key>history</key> |
| 339 | <array> | 339 | <array> |
| 340 | <string>B5731B8B0E4310180008024F</string> | 340 | <string>B5731B8B0E4310180008024F</string> |
| @@ -570,11 +570,12 @@ | @@ -570,11 +570,12 @@ | ||
| 570 | <integer>5</integer> | 570 | <integer>5</integer> |
| 571 | <key>WindowOrderList</key> | 571 | <key>WindowOrderList</key> |
| 572 | <array> | 572 | <array> |
| 573 | + <string>1C530D57069F1CE1000CFCEE</string> | ||
| 573 | <string>B567EF0F0E4EDB31001E238F</string> | 574 | <string>B567EF0F0E4EDB31001E238F</string> |
| 574 | <string>B567EF100E4EDB31001E238F</string> | 575 | <string>B567EF100E4EDB31001E238F</string> |
| 575 | <string>B5ABC8410E24CDE70072F422</string> | 576 | <string>B5ABC8410E24CDE70072F422</string> |
| 576 | - <string>1CD10A99069EF8BA00B06720</string> | ||
| 577 | <string>1C78EAAD065D492600B07095</string> | 577 | <string>1C78EAAD065D492600B07095</string> |
| 578 | + <string>1CD10A99069EF8BA00B06720</string> | ||
| 578 | <string>/Users/ben/asi-http-request/asi-http-request.xcodeproj</string> | 579 | <string>/Users/ben/asi-http-request/asi-http-request.xcodeproj</string> |
| 579 | </array> | 580 | </array> |
| 580 | <key>WindowString</key> | 581 | <key>WindowString</key> |
| @@ -810,14 +811,12 @@ | @@ -810,14 +811,12 @@ | ||
| 810 | <key>Dock</key> | 811 | <key>Dock</key> |
| 811 | <array> | 812 | <array> |
| 812 | <dict> | 813 | <dict> |
| 813 | - <key>BecomeActive</key> | ||
| 814 | - <true/> | ||
| 815 | <key>ContentConfiguration</key> | 814 | <key>ContentConfiguration</key> |
| 816 | <dict> | 815 | <dict> |
| 817 | <key>PBXProjectModuleGUID</key> | 816 | <key>PBXProjectModuleGUID</key> |
| 818 | <string>1CDD528C0622207200134675</string> | 817 | <string>1CDD528C0622207200134675</string> |
| 819 | <key>PBXProjectModuleLabel</key> | 818 | <key>PBXProjectModuleLabel</key> |
| 820 | - <string>ASIHTTPRequest.m</string> | 819 | + <string></string> |
| 821 | <key>StatusBarVisibility</key> | 820 | <key>StatusBarVisibility</key> |
| 822 | <true/> | 821 | <true/> |
| 823 | </dict> | 822 | </dict> |
| @@ -838,6 +837,8 @@ | @@ -838,6 +837,8 @@ | ||
| 838 | <string>212pt</string> | 837 | <string>212pt</string> |
| 839 | </dict> | 838 | </dict> |
| 840 | <dict> | 839 | <dict> |
| 840 | + <key>BecomeActive</key> | ||
| 841 | + <true/> | ||
| 841 | <key>ContentConfiguration</key> | 842 | <key>ContentConfiguration</key> |
| 842 | <dict> | 843 | <dict> |
| 843 | <key>PBXProjectModuleGUID</key> | 844 | <key>PBXProjectModuleGUID</key> |
| @@ -873,8 +874,8 @@ | @@ -873,8 +874,8 @@ | ||
| 873 | <key>TableOfContents</key> | 874 | <key>TableOfContents</key> |
| 874 | <array> | 875 | <array> |
| 875 | <string>1C530D57069F1CE1000CFCEE</string> | 876 | <string>1C530D57069F1CE1000CFCEE</string> |
| 876 | - <string>B50FD7100E3B83F3003CEB08</string> | 877 | + <string>B567EF350E4EDE05001E238F</string> |
| 877 | - <string>B50FD7110E3B83F3003CEB08</string> | 878 | + <string>B567EF360E4EDE05001E238F</string> |
| 878 | <string>1CDD528C0622207200134675</string> | 879 | <string>1CDD528C0622207200134675</string> |
| 879 | <string>1CD0528E0623707200166675</string> | 880 | <string>1CD0528E0623707200166675</string> |
| 880 | </array> | 881 | </array> |
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment