-
Notifications
You must be signed in to change notification settings - Fork 8
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
Backport NR-234826 #335
base: staging
Are you sure you want to change the base?
Backport NR-234826 #335
Conversation
NSData *data = NRMA__getDataForSessionTask(task); | ||
NRMA__recordTask(task, data, task.response, task.error); | ||
} | ||
task.state == NSURLSessionTaskStateRunning) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to check that the response we get is of type NSHTTPURLResponse? That is kind of what the response code check does.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed the other places we call NRMA__recordTask we don’t even care about the responseCode. I’m not sure why the NRMAURLSessionTaskOverride was checking the response code and checking that task.response was of type NSHTTPURLResponse.
…ed object to track handled URLSessionTasks
No description provided.