mirror of https://github.com/MISP/MISP
chg: [RestClient] use http_method value from template if available
parent
b33720aa46
commit
bcac8674fa
|
@ -165,7 +165,11 @@ var debounceTimerUpdate;
|
|||
var previously_selected_template = $('#ServerUrl').data('urlWithoutParam')
|
||||
if (selected_template !== '' && allValidApis[selected_template] !== undefined) {
|
||||
$('#template_description').show();
|
||||
$('#ServerMethod').val('POST');
|
||||
if(allValidApis[selected_template].http_method !== undefined){
|
||||
$('#ServerMethod').val(allValidApis[selected_template].http_method);
|
||||
} else {
|
||||
$('#ServerMethod').val('POST');
|
||||
}
|
||||
var server_url_changed = $('#ServerUrl').val() != allValidApis[selected_template].url;
|
||||
$('#ServerUrl')
|
||||
.val(allValidApis[selected_template].url)
|
||||
|
|
Loading…
Reference in New Issue