Private
Public Access
1
0

Switches from GCDWebServer to CocoaHTTPServer so we can have HTTPS eventually

This commit is contained in:
2018-11-16 01:30:38 -08:00
parent 5ced6151c2
commit baffa7b035
20 changed files with 692 additions and 345 deletions

View File

@@ -7,6 +7,7 @@
//
#import "MBIMConversationListOperation.h"
#import "MBIMHTTPUtilities.h"
#import <IMCore/IMCore.h>
@@ -28,7 +29,7 @@
NSMutableDictionary *chatDict = [NSMutableDictionary dictionary];
chatDict[@"guid"] = [chat guid];
chatDict[@"displayName"] = [chat displayName];
chatDict[@"date"] = GCDWebServerFormatRFC822([chat lastFinishedMessageDate]);
chatDict[@"date"] = MBIMWebServerFormatRFC822([chat lastFinishedMessageDate]);
IMMessage *lastMessage = [chat lastMessage];
if (lastMessage) {
@@ -48,7 +49,7 @@
[conversations addObject:chatDict];
}
GCDWebServerResponse *response = [GCDWebServerDataResponse responseWithJSONObject:conversations];
MBIMJSONDataResponse *response = [MBIMJSONDataResponse responseWithJSONObject:conversations];
self.serverCompletionBlock(response);
}