Every service meant to be public work now on port 80 (#205)
Co-authored-by: Adam Bem <adam.bem@zoho.eu> Reviewed-on: #205 Reviewed-by: Mikolaj Widla <widlam@noreply.example.com>
This commit is contained in:
@@ -78,7 +78,8 @@ function showHeadersHistory(element){
|
||||
}
|
||||
|
||||
async function formatJSON(json) {
|
||||
const address = window.location.protocol + "//" + window.location.hostname + ":" + 8081 + "/json/formatting";
|
||||
const backend = "java";
|
||||
const address = window.location.protocol + "//" + window.location.hostname + "/" + backend + "/json/formatting";
|
||||
|
||||
var init = {
|
||||
body: json,
|
||||
@@ -98,7 +99,8 @@ async function formatJSON(json) {
|
||||
}
|
||||
|
||||
async function formatXML(xml) {
|
||||
const address = window.location.protocol + "//" + window.location.hostname + ":" + 8082 + "/prettify";
|
||||
const backend = "libxml";
|
||||
const address = window.location.protocol + "//" + window.location.hostname + "/" + backend + "/prettify";
|
||||
var data = {
|
||||
data: xml,
|
||||
process: "",
|
||||
@@ -140,7 +142,7 @@ function showRequestBody(element){
|
||||
});
|
||||
break;
|
||||
}
|
||||
case "application/xml":{
|
||||
case "application/xml": {
|
||||
formatXML(historyRequestBody).then(function(result) {
|
||||
if (result.status == "OK") {
|
||||
popupContent.innerText = result.result;
|
||||
|
||||
Reference in New Issue
Block a user