Skip to content

Commit

Permalink
Update MSDKDnsHttpMessageTools.m
Browse files Browse the repository at this point in the history
  • Loading branch information
HuYuee authored Jun 13, 2024
1 parent 34a9426 commit f2dc408
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions MSDKDns/MSDKDnsHttpMessageTools.m
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ - (void)startRequest {
CFDataRef bodyData = CFStringCreateExternalRepresentation(kCFAllocatorDefault, requestBody, kCFStringEncodingUTF8, 0);
if (_curRequest.HTTPBody) {
bodyData = (__bridge_retained CFDataRef) _curRequest.HTTPBody;
CFHTTPMessageSetBody(cfrequest, bodyData);
} else if(_curRequest.HTTPBodyStream) {
NSData *data = [self dataWithInputStream:_curRequest.HTTPBodyStream];
CFDataRef body = (__bridge_retained CFDataRef) data;
Expand Down

0 comments on commit f2dc408

Please sign in to comment.