Subversion Repositories SmartDukaan

Rev

Rev 33758 | Rev 33765 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 33758 Rev 33759
Line 285... Line 285...
285
            internalServerErrorAlert(xhttp);
285
            internalServerErrorAlert(xhttp);
286
        }
286
        }
287
    };
287
    };
288
    // Post data to URL which handles post request
288
    // Post data to URL which handles post request
289
    xhttp.open(httpType, urlString);
289
    xhttp.open(httpType, urlString);
-
 
290
 
-
 
291
    // if (IdempotencyKey) {
-
 
292
    //     xhttp.setRequestHeader("IdempotencyKey", IdempotencyKey);
-
 
293
    // }
-
 
294
 
290
    if (httpType == "POST") {
295
    if (httpType == "POST") {
291
        xhttp.setRequestHeader("Content-Type", "application/json");
296
        xhttp.setRequestHeader("Content-Type", "application/json");
292
    }
297
    }
293
    // You should set responseType as blob for binary responses
298
    // You should set responseType as blob for binary responses
294
    // xhttp.responseType = 'blob';
299
    // xhttp.responseType = 'blob';