Skip to content

Commit

Permalink
Sandbox should not be disabled in https whenever a method is not mark…
Browse files Browse the repository at this point in the history
…ed as

https explictly
  • Loading branch information
tonivdv committed Mar 11, 2014
1 parent 855f95a commit 04c03e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Resources/views/method.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@

{% if enableSandbox %}
<div class="pane sandbox">
{% if app.request is not null and app.request.secure != data.https %}
{% if app.request is not null and data.https and app.request.secure != data.https %}
Please reload the documentation using the scheme {% if data.https %}HTTPS{% else %}HTTP{% endif %} if you want to use the sandbox.
{% else %}
<form method="{{ data.method|upper }}" action="{% if data.host is defined %}{{ data.https ? 'https://' : 'http://' }}{{ data.host }}{% endif %}{{ data.uri }}">
Expand Down

0 comments on commit 04c03e3

Please sign in to comment.