File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -1066,6 +1066,7 @@ public function logVersion() {
1066
1066
if (isset ($ _POST ['step ' ])) {
1067
1067
// mark step as failed
1068
1068
http_response_code (500 );
1069
+ header ('Content-Type: application/json ' );
1069
1070
echo (json_encode (['proceed ' => false , 'response ' => $ e ->getMessage ()]));
1070
1071
die ();
1071
1072
}
@@ -1145,6 +1146,7 @@ public function logVersion() {
1145
1146
break ;
1146
1147
}
1147
1148
$ updater ->endStep ($ step );
1149
+ header ('Content-Type: application/json ' );
1148
1150
echo (json_encode (['proceed ' => true ]));
1149
1151
} catch (UpdateException $ e ) {
1150
1152
$ message = $ e ->getData ();
@@ -1160,6 +1162,7 @@ public function logVersion() {
1160
1162
$ updater ->rollbackChanges ($ step );
1161
1163
}
1162
1164
http_response_code (500 );
1165
+ header ('Content-Type: application/json ' );
1163
1166
echo (json_encode (['proceed ' => false , 'response ' => $ message ]));
1164
1167
} catch (\Exception $ e ) {
1165
1168
$ message = $ e ->getMessage ();
@@ -1175,6 +1178,7 @@ public function logVersion() {
1175
1178
$ updater ->rollbackChanges ($ step );
1176
1179
}
1177
1180
http_response_code (500 );
1181
+ header ('Content-Type: application/json ' );
1178
1182
echo (json_encode (['proceed ' => false , 'response ' => $ message ]));
1179
1183
}
1180
1184
You can’t perform that action at this time.
0 commit comments