react-native-windows 0.68.25 → 0.68.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,10 +10,10 @@
10
10
  -->
11
11
  <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
12
12
  <PropertyGroup>
13
- <ReactNativeWindowsVersion>0.68.25</ReactNativeWindowsVersion>
13
+ <ReactNativeWindowsVersion>0.68.26</ReactNativeWindowsVersion>
14
14
  <ReactNativeWindowsMajor>0</ReactNativeWindowsMajor>
15
15
  <ReactNativeWindowsMinor>68</ReactNativeWindowsMinor>
16
- <ReactNativeWindowsPatch>25</ReactNativeWindowsPatch>
16
+ <ReactNativeWindowsPatch>26</ReactNativeWindowsPatch>
17
17
  <ReactNativeWindowsCanary>false</ReactNativeWindowsCanary>
18
18
  </PropertyGroup>
19
19
  </Project>
@@ -113,6 +113,8 @@ bool OriginPolicyHttpFilter::ConstWcharComparer::operator()(const wchar_t *a, co
113
113
  /*static*/ void OriginPolicyHttpFilter::SetStaticOrigin(std::string &&url) {
114
114
  if (!url.empty())
115
115
  s_origin = Uri{to_hstring(url)};
116
+ else
117
+ s_origin = nullptr;
116
118
  }
117
119
 
118
120
  /*static*/ bool OriginPolicyHttpFilter::IsSameOrigin(Uri const &u1, Uri const &u2) noexcept {
@@ -651,21 +653,26 @@ ResponseOperation OriginPolicyHttpFilter::SendPreflightAsync(HttpRequestMessage
651
653
  preflightRequest.Headers().Insert(L"Access-Control-Request-Method", coRequest.Method().ToString());
652
654
 
653
655
  auto headerNames = wstring{};
654
- auto headerItr = coRequest.Headers().begin();
655
- if (headerItr != coRequest.Headers().end()) {
656
- headerNames += (*headerItr).Key();
656
+ auto writeSeparator = false;
657
+ for (const auto &header : coRequest.Headers()) {
658
+ if (writeSeparator) {
659
+ headerNames += L", ";
660
+ } else {
661
+ writeSeparator = true;
662
+ }
657
663
 
658
- while (++headerItr != coRequest.Headers().end())
659
- headerNames += L", " + (*headerItr).Key();
664
+ headerNames += header.Key();
660
665
  }
661
666
 
662
667
  if (coRequest.Content()) {
663
- headerItr = coRequest.Content().Headers().begin();
664
- if (headerItr != coRequest.Content().Headers().end()) {
665
- headerNames += (*headerItr).Key();
668
+ for (const auto &header : coRequest.Content().Headers()) {
669
+ if (writeSeparator) {
670
+ headerNames += L", ";
671
+ } else {
672
+ writeSeparator = true;
673
+ }
666
674
 
667
- while (++headerItr != coRequest.Content().Headers().end())
668
- headerNames += L", " + (*headerItr).Key();
675
+ headerNames += header.Key();
669
676
  }
670
677
  }
671
678
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-windows",
3
- "version": "0.68.25",
3
+ "version": "0.68.26",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",