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 20e3259 commit 39b7572Copy full SHA for 39b7572
src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/http_client.html.twig
@@ -91,7 +91,7 @@
91
Profile
92
</th>
93
{% endif %}
94
- {% if trace.curlCommand is not null %}
+ {% if trace.curlCommand is defined and trace.curlCommand %}
95
<th>
96
<button class="btn btn-sm hidden" title="Copy as cURL" data-clipboard-text="{{ trace.curlCommand }}">Copy as cURL</button>
97
@@ -107,7 +107,7 @@
107
108
<tr>
109
<th class="font-normal">Response</th>
110
- <td{% if trace.curlCommand %} colspan="2"{% endif %}>
+ <td{% if trace.curlCommand is defined and trace.curlCommand %} colspan="2"{% endif %}>
111
{% if trace.http_code >= 500 %}
112
{% set responseStatus = 'error' %}
113
{% elseif trace.http_code >= 400 %}
0 commit comments