Skip to content

Commit

Permalink
Fix layout response for non-existent pages in RAV (#2016)
Browse files Browse the repository at this point in the history
* fix non existent pages for rav

* update changelog

---------

Co-authored-by: Addy Pathania <aditya.pathania22@gmail.com>
  • Loading branch information
addy-pathania and apathania22 authored Jan 22, 2025
1 parent 94e4154 commit f734384
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Our versioning strategy is as follows:
### 🛠 Breaking Change

* `[all packages]` `[all samples]` Remove Axios ([#2006](https://github.com/Sitecore/jss/pull/2006)) ([#2008](https://github.com/Sitecore/jss/pull/2008)) ([#2011](https://github.com/Sitecore/jss/pull/2011))([#2013](https://github.com/Sitecore/jss/pull/2013))([#2015](https://github.com/Sitecore/jss/pull/2015))
([#2016](https://github.com/Sitecore/jss/pull/2016))
* `AxiosDataFetcher` is replaced by the `NativeDataFetcher`.
* `AxiosDataFetcherConfig` is replaced by `NativeDataFetcherConfig`.
* `AxiosResponse` is replaced by `NativeDataFetcherResponse`.
Expand Down
1 change: 0 additions & 1 deletion packages/sitecore-jss/src/native-fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ export class NativeDataFetcher {
init.method = init.body ? 'POST' : 'GET';
}

headers.set('Content-Type', 'application/json');
init.headers = headers;

return init;
Expand Down

0 comments on commit f734384

Please sign in to comment.