Skip to content

Commit b09cab1

Browse files
author
Evadne Wu
committed
ObjC | revises un-parse-able response handling, removes request HTTP body in the displayed
1 parent 9f96ccd commit b09cab1

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎IRWebAPIEngine.m‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,13 @@ - (NSDictionary *) parsedResponseForData:(NSData *)inData withContext:(NSDiction
164164
- (void) handleUnparsableResponseForData:(NSData *)inData context:(NSDictionary *)inContext {
165165

166166
NSLog(@"%@ %s Warning: unparsable response. Resetting returned response to an empty dictionary.", self, __PRETTY_FUNCTION__);
167-
NSLog(@"Context: %@", inContext);
167+
168+
return;
169+
170+
NSMutableDictionary *displayedContext = [inContext mutableCopy];
171+
[displayedContext setObject:@"< REMOVED> " forKey:kIRWebAPIEngineRequestHTTPBody];
172+
173+
NSLog(@"Context: %@", displayedContext);
168174

169175
// This can potentially clog up the wirings
170176
// IRWebAPIResponseParser defaultParser = IRWebAPIResponseDefaultParserMake();

0 commit comments

Comments
 (0)