-
Notifications
You must be signed in to change notification settings - Fork 172
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
Matching request headers on iOS 8 #90
Comments
I'm running into this as well using Xcode 6.0.1 targetting 8.0, trying to verify that a header with a UUID is matched. Could be I'm missing something?
|
@jjohnson4014 This is because you can't put regular expressions in the header matching - you can only use regular expressions to match the URL. |
OK further update on this it seems to happen with the iOS7 introduced NSURLSession dataTaskWithURL but not with the old school NSURLConnection requests. |
I'm stubbing a request like the below
It's working fine on the iOS 7.1 sim but isn't matching the request on iOS 8 sim - it seems that the headers don't exist on the request in startLoading on LSHTTPStubURLProtocol.
Anyone else experiencing this? Stubbing is working fine on iOS 8 when not trying to match headers.
The text was updated successfully, but these errors were encountered: