Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Commit

Permalink
fixes #9
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborremenyi committed Sep 21, 2015
1 parent 120731b commit 151ded0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/main/webapp/js/transformers.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,16 @@ function initFileInput() {
function testTransformer() {
showLoadingCover();

var acceptHeader = isEmpty(acceptHeader) ? '*/*' : $('#acceptHeader').val();
var contentType = isEmpty(contentType) ? 'text/plain; charset=utf-8' : $('#contentType').val();
var acceptHeaderInput = $('#acceptHeader').val();
var contentTypeInput = $('#contentType').val();

var acceptHeader = isEmpty(acceptHeaderInput) ? '*/*' : acceptHeaderInput;
var contentType = isEmpty(contentTypeInput) ? 'text/plain; charset=utf-8' : contentTypeInput;

$.ajax({
type: 'POST',
url: selectedTransformer.uri.value + '?config=' + selectedTransformer.child.value,
headers: {
headers: {
'Accept': acceptHeader,
'Content-Type': contentType
},
Expand Down

0 comments on commit 151ded0

Please sign in to comment.