441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
|
OFString *key, *value;
size_t pos;
if ([line length] == 0) {
size_t contentLength;
@try {
contentLength = [[_headers
objectForKey: @"Content-Length"] decimalValue];
} @catch (OFInvalidFormatException *e) {
return [self sendErrorAndClose: 400];
}
if (contentLength > 0) {
char *buffer;
|
|
|
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
|
OFString *key, *value;
size_t pos;
if ([line length] == 0) {
size_t contentLength;
@try {
contentLength = (size_t)[[_headers
objectForKey: @"Content-Length"] decimalValue];
} @catch (OFInvalidFormatException *e) {
return [self sendErrorAndClose: 400];
}
if (contentLength > 0) {
char *buffer;
|