mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Use POST instead of GET for Query Tool downloads to avoid errors with long queries. Fixes #4013
This commit is contained in:
@@ -3564,17 +3564,14 @@ define('tools.querytool', [
|
||||
var self = this,
|
||||
url = url_for('sqleditor.query_tool_download', {
|
||||
'trans_id': self.transId,
|
||||
});
|
||||
|
||||
url += '?' + $.param({
|
||||
query: query,
|
||||
filename: filename,
|
||||
});
|
||||
}),
|
||||
data = { query: query, filename: filename };
|
||||
|
||||
// Get the CSV file
|
||||
self.download_csv_obj = $.ajax({
|
||||
type: 'GET',
|
||||
type: 'POST',
|
||||
url: url,
|
||||
data: data,
|
||||
cache: false,
|
||||
async: true,
|
||||
xhrFields: {
|
||||
|
||||
Reference in New Issue
Block a user