Parse task headers as HTTP headers rather than JSON

This commit is contained in:
Rowan Manning
2016-11-07 14:48:11 +00:00
committed by Rowan Manning
parent ee729d1d55
commit 568e068613
6 changed files with 24 additions and 12 deletions

View File

@@ -105,8 +105,9 @@ along with Pa11y Dashboard. If not, see <http://www.gnu.org/licenses/>.
<div class="form-group clearfix">
<div class="row">
<div class="col-md-4 col-sm-4 col-xs-6">
<label class="control-label" for="new-task-headers">Headers Object (JSON)</label>
<input class="form-control" id="new-task-headers" type="text" name="headers" value="{{task.headers}}" placeholder='{"Cookie": "foo=bar"}'/>
<label class="control-label" for="new-task-headers">HTTP Headers</label>
<textarea class="form-control" id="new-task-headers" name="headers" placeholder="Cookie: foo=bar">{{task.headers}}</textarea>
<em>(As key/value pairs, separated by newlines/colons)</em>
</div>
</div>
</div>