Fix user agent response header on ios

Fix user agent response header on ios as we did on Android.