mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Make test write a large request, not just a small one.
This commit is contained in:
parent
12c88716d0
commit
8d75688048
1 changed files with 9 additions and 1 deletions
|
@ -117,7 +117,15 @@ resourceDidFailLoadingWithReason: (NSString *)reason
|
|||
* background and wait a bit
|
||||
*/
|
||||
[handle writeProperty: @"POST" forKey: GSHTTPPropertyMethodKey];
|
||||
[handle writeData: [@"Hello" dataUsingEncoding: NSASCIIStringEncoding]];
|
||||
NSData *d = [@"1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ"
|
||||
dataUsingEncoding: NSUTF8StringEncoding];
|
||||
NSMutableData *m = AUTORELEASE([d mutableCopy]);
|
||||
while ([m length] < 64 * 1024)
|
||||
{
|
||||
[m appendData: d];
|
||||
}
|
||||
|
||||
[handle writeData: m];
|
||||
[handle setReturnAll: YES];
|
||||
[handle loadInBackground];
|
||||
PASS([self status] == URLHandleClientDidBeginLoading,
|
||||
|
|
Loading…
Reference in a new issue