Skip to content

Commit 0e7b6e2

Browse files
authored
Merge pull request #57 from contentstack/fix/DX-1424
Fix: dx 1424
2 parents 1178398 + 2e615c0 commit 0e7b6e2

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

.github/workflows/check-branch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Comment PR
11-
if: github.base_ref == 'master' && github.head_ref != 'next'
11+
if: github.base_ref == 'master' && github.head_ref != 'staging'
1212
uses: thollander/actions-comment-pull-request@v2
1313
with:
1414
message: |

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
### Version: 2.15.1
2+
#### Date: Oct-08-2024
3+
4+
##### Fix:
5+
- Removed exclusion of env when adding headers
6+
17
### Version: 2.15.0
28
#### Date: Jul-30-2024
39

Contentstack.Core/Models/Entry.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1380,12 +1380,8 @@ public async Task<T> Fetch<T>()
13801380
headerAll["authorization"] = this.ContentTypeInstance.StackInstance.LivePreviewConfig.ManagementToken;
13811381
isLivePreview = true;
13821382
}
1383-
else
1384-
{
1385-
mainJson.Add("environment", this.ContentTypeInstance.StackInstance.Config.Environment);
1386-
}
13871383

1388-
1384+
mainJson.Add("environment", this.ContentTypeInstance.StackInstance.Config.Environment);
13891385
foreach (var kvp in UrlQueries)
13901386
{
13911387
mainJson.Add(kvp.Key, kvp.Value);

Contentstack.Core/Models/Query.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1851,10 +1851,8 @@ private async Task<JObject> Exec()
18511851
headerAll["authorization"] = this.ContentTypeInstance.StackInstance.LivePreviewConfig.ManagementToken;
18521852
isLivePreview = true;
18531853
}
1854-
else
1855-
{
1856-
mainJson.Add("environment", this.ContentTypeInstance.StackInstance.Config.Environment);
1857-
}
1854+
1855+
mainJson.Add("environment", this.ContentTypeInstance.StackInstance.Config.Environment);
18581856
if (QueryValueJson != null && QueryValueJson.Count > 0)
18591857
mainJson.Add("query", QueryValueJson);
18601858

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<Project>
22
<PropertyGroup>
3-
<Version>2.15.0</Version>
3+
<Version>2.15.1</Version>
44
</PropertyGroup>
55
</Project>

0 commit comments

Comments
 (0)