Skip to content

Commit

Permalink
Merge Pull Request #66
Browse files Browse the repository at this point in the history
  • Loading branch information
AliSoftware committed Jul 22, 2014
1 parent 01bfed5 commit f29edf0
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions OHHTTPStubs/Sources/OHHTTPStubsResponse.m
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@ +(instancetype)responseWithError:(NSError*)error

-(instancetype)responseTime:(NSTimeInterval)responseTime
{
self.responseTime = responseTime;
_responseTime = responseTime;
return self;
}

-(instancetype)requestTime:(NSTimeInterval)requestTime responseTime:(NSTimeInterval)responseTime
{
self.requestTime = requestTime;
self.responseTime = responseTime;
_requestTime = requestTime;
_responseTime = responseTime;
return self;
}

Expand All @@ -110,16 +110,16 @@ -(instancetype)initWithInputStream:(NSInputStream*)inputStream
self = [super init];
if (self)
{
self.inputStream = inputStream;
self.dataSize = dataSize;
self.statusCode = statusCode;
_inputStream = inputStream;
_dataSize = dataSize;
_statusCode = statusCode;
NSMutableDictionary * headers = [NSMutableDictionary dictionaryWithDictionary:httpHeaders];
static NSString *const ContentLengthHeader = @"Content-Length";
if (!headers[ContentLengthHeader])
{
headers[ContentLengthHeader] = [NSString stringWithFormat:@"%llu",self.dataSize];
headers[ContentLengthHeader] = [NSString stringWithFormat:@"%llu",_dataSize];
}
self.httpHeaders = [NSDictionary dictionaryWithDictionary:headers];
_httpHeaders = [NSDictionary dictionaryWithDictionary:headers];
}
return self;
}
Expand Down Expand Up @@ -154,7 +154,7 @@ -(instancetype)initWithError:(NSError*)error
{
self = [super init];
if (self) {
self.error = error;
_error = error;
}
return self;
}
Expand Down

0 comments on commit f29edf0

Please sign in to comment.