- Increase HTTP buffer size to 256KB

- Support a different older flavor of ShoutCAST server
CQTexperiment
Christopher Snowhill 2020-04-11 00:30:27 -07:00
parent 6c7b7f7213
commit 4aca4a9c77
1 changed files with 3 additions and 2 deletions

View File

@ -14,7 +14,7 @@
#import <stdlib.h>
#import <string.h>
#define BUFFER_SIZE 131072
#define BUFFER_SIZE 262144
@implementation HTTPSource
@ -122,7 +122,8 @@ didReceiveResponse:(NSURLResponse *)response
}
}
_mimeType = [response MIMEType];
if ([_mimeType isEqualToString:@"application/octet-stream"])
if ([_mimeType isEqualToString:@"application/octet-stream"] ||
[_mimeType isEqualToString:@"text/plain"])
didReceiveRandomData = YES;
else
didReceiveResponse = YES;