while ((part = [enumerator nextObject])) {
[data appendBytes:"--" length:2];
[data appendBytes:[_boundary cString] length:[_boundary length]];
- [data appendBytes:"\n" length:1];
+ [data appendBytes:"\r\n" length:2];
[data appendData:part];
- [data appendBytes:"\n" length:1];
+ [data appendBytes:"\r\n" length:2];
}
[data appendBytes:"--" length:2];
[data appendBytes:[_boundary cString] length:[_boundary length]];
- [data appendBytes:"--\n" length:3];
+ [data appendBytes:"--\r\n" length:4];
return data;
}