Change Request method for config edit form

Use POST to send config, GET can't handle big config files.
pull/56/head
Khartir 2018-10-05 11:34:39 +02:00 committed by GitHub
parent a9e99f44a1
commit d8bd522b0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@
<div class="alert alert-info"><b>Note:</b> If you reconfigure Master server, Slave will reconfigured automatically</div>
{% endif %}
<h3>Config from {{ serv }}</h3>
<form action="{{ action }}" name="saveconfig" method="get">
<form action="{{ action }}" name="saveconfig" method="post">
<input type="hidden" value="{{ serv }}" name="serv">
<input type="hidden" value="{{ cfg }}.old" name="oldconfig">
<textarea name="config" class="config" rows="35" cols="100">{{ config }}</textarea>
@ -84,4 +84,4 @@
<script>window.history.pushState("Config", "Config", cur_url[0])</script>
{% endif %}
</center>
{% endblock %}
{% endblock %}