@@ -99,12 +99,12 @@ requestURL.path = _path; OFMutableDictionary *headers = [OFMutableDictionary dictionary]; headers[@"User-Agent"] = @"ObjMatrix"; if (_accessToken != nil) - headers[@"Authentication"] = [OFString - stringWithFormat: @"Bearer %@", _accessToken]; + headers[@"Authorization"] = + [OFString stringWithFormat: @"Bearer %@", _accessToken]; if (_body != nil) headers[@"Content-Length"] = @(_body.count).stringValue; OFHTTPRequest *request = [OFHTTPRequest requestWithURL: requestURL]; request.method = _method; @@ -137,13 +137,13 @@ [responseData addItems: buffer count: length]; } - OFDictionary *responseJSON = - [OFString stringWithUTF8String: responseData.items - length: responseData.count] + mtx_response_t responseJSON = [OFString + stringWithUTF8String: responseData.items + length: responseData.count] .objectByParsingJSON; block(responseJSON, response.statusCode, nil); } @catch (id e) { block(nil, response.statusCode, e);