Private
Public Access
1
0

Auth: Use Set-Cookie for auth token

This commit is contained in:
2021-07-06 23:41:51 -07:00
parent 641e4c53fa
commit 7a3303da06
3 changed files with 12 additions and 4 deletions

View File

@@ -12,6 +12,7 @@
NS_ASSUME_NONNULL_BEGIN
@interface MBIMDataResponse : HTTPDataResponse
@property (nonatomic, readonly) NSMutableDictionary *httpHeaders;
- (instancetype)initWithData:(NSData *)data contentType:(NSString *)contentType;
@end

View File

@@ -10,6 +10,7 @@
@implementation MBIMDataResponse {
NSString *_contentType;
NSMutableDictionary *_httpHeaders;
}
- (instancetype)initWithData:(NSData *)data contentType:(NSString *)contentType
@@ -17,6 +18,9 @@
self = [super initWithData:data];
if (self) {
_contentType = contentType;
_httpHeaders = [@{
@"Content-Type" : _contentType ?: @"application/octet-stream"
} mutableCopy];
}
return self;
@@ -24,9 +28,7 @@
- (NSDictionary *)httpHeaders
{
return @{
@"Content-Type" : _contentType ?: @"application/octet-stream"
};
return _httpHeaders;
}
@end