File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ This file tracks the changes to Wing over time. Especially
4
4
with respect to new features and compatibility changes.
5
5
==========================================================
6
6
7
+ 2022-12-27
8
+ * Added X-WING-SKIP-RESULT-WRAPPER header check in Wing::Rest.
9
+
7
10
2022-12-16
8
11
* Added generate_options_by_name_where option to Wing::Role::Result::Parent.
9
12
* Added a switch to have new comment box at the top instead of the bottom.
Original file line number Diff line number Diff line change @@ -258,7 +258,9 @@ hook before => sub {
258
258
hook before_serializer => sub {
259
259
my $response = shift ;
260
260
my $content = $response -> {content };
261
- $response -> {content } = { result => $content , };
261
+ unless ($response -> header(' X-WING-SKIP-RESULT-WRAPPER' )) {
262
+ $response -> {content } = { result => $content };
263
+ }
262
264
return $response ;
263
265
};
264
266
You can’t perform that action at this time.
0 commit comments