Merge pull request #277 from adriensamson/sandbox-host

Add support for host in sandbox
This commit is contained in:
William Durand 2013-11-14 00:25:50 -08:00
commit f94d6403f5

View File

@ -193,7 +193,7 @@
{% if enableSandbox %}
<div class="pane sandbox">
<form method="{{ data.method|upper }}" action="{{ data.uri }}">
<form method="{{ data.method|upper }}" action="{% if data.host is defined %}{{ data.https ? 'https://' : 'http://' }}{{ data.host }}{% endif %}{{ data.uri }}">
<fieldset class="parameters">
<legend>Input</legend>
{% if data.requirements is defined %}