We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a9aed0 commit 37ed5a4Copy full SHA for 37ed5a4
package.json
@@ -1,7 +1,7 @@
1
{
2
"name": "@puzzle-js/client-lib",
3
"main": "dist/index.js",
4
- "version": "1.2.3",
+ "version": "1.2.4",
5
"author": "<emre.kul@trendyol.com>",
6
"license": "MIT",
7
"repository": {
src/core.ts
@@ -157,8 +157,11 @@ export class Core extends Module {
157
});
158
}
159
160
- if (res['$headers'] && res['$headers'].location) {
161
- return location.href = res['$headers'].location;
+ if (res['$headers']) {
+ const locationRedirect = res['$headers'].location || res['$headers'].Location;
162
+ if (locationRedirect) {
163
+ return location.href = res['$headers'].location;
164
+ }
165
166
167
Object.keys(res).forEach(key => {
0 commit comments