Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
subrequests
Commits
5aea2066
Unverified
Commit
5aea2066
authored
Jan 27, 2018
by
fago
Committed by
Mateu Aguiló Bosch
Jan 27, 2018
Browse files
Issue
#2938625
by fago: Notices of GET blueprint requests cause a broken page cache
parent
b2c34dee
Changes
1
Show whitespace changes
Inline
Side-by-side
src/Normalizer/JsonBlueprintDenormalizer.php
View file @
5aea2066
...
...
@@ -115,9 +115,13 @@ class JsonBlueprintDenormalizer implements DenormalizerInterface, SerializerAwar
$uuid
=
new
Php
();
$raw_item
[
'requestId'
]
=
$uuid
->
generate
();
}
if
(
!
empty
(
$raw_item
[
'body'
]))
{
if
(
!
isset
(
$raw_item
[
'body'
]))
{
$raw_item
[
'body'
]
=
NULL
;
}
elseif
(
!
empty
(
$raw_item
[
'body'
]))
{
$raw_item
[
'body'
]
=
Json
::
decode
(
$raw_item
[
'body'
]);
}
$raw_item
[
'headers'
]
=
!
empty
(
$raw_item
[
'headers'
])
?
$raw_item
[
'headers'
]
:
[];
$raw_item
[
'waitFor'
]
=
!
empty
(
$raw_item
[
'waitFor'
])
?
$raw_item
[
'waitFor'
]
:
[
'<ROOT>'
];
$raw_item
[
'_resolved'
]
=
FALSE
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment