From 4aca4a9c776fef7768b3a2ef9d9341293bbbac41 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Sat, 11 Apr 2020 00:30:27 -0700 Subject: [PATCH] - Increase HTTP buffer size to 256KB - Support a different older flavor of ShoutCAST server --- Plugins/HTTPSource/HTTPSource.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Plugins/HTTPSource/HTTPSource.m b/Plugins/HTTPSource/HTTPSource.m index 6e82ec1f1..c4d506b21 100644 --- a/Plugins/HTTPSource/HTTPSource.m +++ b/Plugins/HTTPSource/HTTPSource.m @@ -14,7 +14,7 @@ #import #import -#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;