close input buffer when creating multpart form from streaming nsurl
This commit is contained in:
parent
d92462ef8c
commit
7399eaa7cc
1 changed files with 3 additions and 1 deletions
|
|
@ -830,6 +830,8 @@ static inline NSString * AFMultipartFormFinalBoundary() {
|
|||
[self appendData:tempData];
|
||||
bytesRead = [inputStream read:dataBuffer maxLength:kAFStreamToStreamBufferSize];
|
||||
}
|
||||
|
||||
[inputStream close];
|
||||
free(dataBuffer);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue