Fixed (ta!) [#1 state:resolved]
I wonder if this lighthouse integration will work...
Showing
1 changed file
with
1 additions
and
0 deletions
@@ -145,6 +145,7 @@ static NSError *ASIUnableToCreateRequestError; | @@ -145,6 +145,7 @@ static NSError *ASIUnableToCreateRequestError; | ||
145 | 145 | ||
146 | -(void)setPostBody:(NSData *)body | 146 | -(void)setPostBody:(NSData *)body |
147 | { | 147 | { |
148 | + [postBody release]; | ||
148 | postBody = [body retain]; | 149 | postBody = [body retain]; |
149 | postLength = [postBody length]; | 150 | postLength = [postBody length]; |
150 | [self addRequestHeader:@"Content-Length" value:[NSString stringWithFormat:@"%llu",postLength]]; | 151 | [self addRequestHeader:@"Content-Length" value:[NSString stringWithFormat:@"%llu",postLength]]; |
-
Please register or login to post a comment