Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit907ade9

Browse files
bug#50139 Check if trace.curlCommand is defined in profiler (Toflar)
This PR was merged into the 6.2 branch.Discussion----------Check if trace.curlCommand is defined in profiler| Q | A| ------------- | ---| Branch? | 6.2| Bug fix? | yes| New feature? | no| Deprecations? |no| Tickets || License | MIT| Doc PR |We'll get a `Key "curlCommand" for array with keys "method, url, options, content, http_code, info" does not exist.` `RuntimeError` otherwise, if this key does not exist :)Commits-------39b7572 Check if trace.curlCommand is defined in profiler
2 parents20e3259 +39b7572 commit907ade9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/http_client.html.twig‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
Profile
9292
</th>
9393
{%endif %}
94-
{%iftrace.curlCommandisnotnull %}
94+
{%iftrace.curlCommandisdefinedandtrace.curlCommand %}
9595
<th>
9696
<buttonclass="btn btn-sm hidden"title="Copy as cURL"data-clipboard-text="{{trace.curlCommand }}">Copy as cURL</button>
9797
</th>
@@ -107,7 +107,7 @@
107107
{%endif %}
108108
<tr>
109109
<thclass="font-normal">Response</th>
110-
<td{%iftrace.curlCommand %}colspan="2"{%endif %}>
110+
<td{%iftrace.curlCommandisdefinedandtrace.curlCommand%}colspan="2"{%endif %}>
111111
{%iftrace.http_code>=500 %}
112112
{%setresponseStatus='error' %}
113113
{%elseiftrace.http_code>=400 %}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp