Commit 45ab228
authored
Fix URLs (#356)
* Fix URLs
• Sending an image URL with query parameters used to not work.
• The SDK was checking the end of URL's to make sure they were an image or other media type (ie. making sure it ended in .jpeg, .mp3, etc)
• Changed the SDK so that it will now remove query parameters from the end of URL's before attempting to type check the file extension
* Add URL Test
• Adds a test to make sure the SDK appropriately handles media URL's even if they have query parameters1 parent e602cb2 commit 45ab228
File tree
2 files changed
+19
-1
lines changed- iOS_SDK/OneSignalSDK
- Source
- UnitTests
2 files changed
+19
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
710 | 710 | | |
711 | 711 | | |
712 | 712 | | |
713 | | - | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
714 | 719 | | |
715 | 720 | | |
716 | 721 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
82 | 86 | | |
83 | 87 | | |
84 | 88 | | |
| |||
1837 | 1841 | | |
1838 | 1842 | | |
1839 | 1843 | | |
| 1844 | + | |
| 1845 | + | |
| 1846 | + | |
| 1847 | + | |
| 1848 | + | |
| 1849 | + | |
| 1850 | + | |
| 1851 | + | |
| 1852 | + | |
1840 | 1853 | | |
0 commit comments