Browse Source

- Increase HTTP buffer size to 256KB

- Support a different older flavor of ShoutCAST server
master
Christopher Snowhill 4 months ago
parent
commit
4aca4a9c77
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      Plugins/HTTPSource/HTTPSource.m

+ 3
- 2
Plugins/HTTPSource/HTTPSource.m 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;


Loading…
Cancel
Save