Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ObjC/PonyDebugger/PDNetworkDomainController.m #26

Merged
merged 1 commit into from Oct 26, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion ObjC/PonyDebugger/PDNetworkDomainController.m
Expand Up @@ -609,7 +609,7 @@ - (id)initWithURLRequest:(NSURLRequest *)request

NSString *contentType = [request valueForHTTPHeaderField:@"Content-Type"];
// Do some trivial redacting here. In particular, redact password
if (contentType && [contentType rangeOfString:@"json"].location != NSNotFound) {
if (body && contentType && [contentType rangeOfString:@"json"].location != NSNotFound) {
NSMutableDictionary *obj = [NSJSONSerialization JSONObjectWithData:body options:0 error:NULL];
if ([obj isKindOfClass:[NSDictionary class]] && [obj objectForKey:@"password"]) {
obj = [obj mutableCopy];
Expand Down