mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-08-29 02:57:38 +08:00
Reduce the query param cut-off to 1000 chars (#259)
* Reduce the query param cut-off to 1000 chars * Update copyright
This commit is contained in:
committed by
GitHub
parent
a2e64e6317
commit
fe5f2b234d
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2020 DigitalOcean
|
Copyright 2021 DigitalOcean
|
||||||
|
|
||||||
This code is licensed under the MIT License.
|
This code is licensed under the MIT License.
|
||||||
You may obtain a copy of the License at
|
You may obtain a copy of the License at
|
||||||
@@ -30,5 +30,5 @@ import exportData from './export_data';
|
|||||||
export default (domains, global) => {
|
export default (domains, global) => {
|
||||||
const data = exportData(domains, global);
|
const data = exportData(domains, global);
|
||||||
const query = qs.stringify(data, { allowDots: true });
|
const query = qs.stringify(data, { allowDots: true });
|
||||||
return `${query.length > 4000 ? '#' : ''}${query.length ? '?' : ''}${query}`;
|
return `${query.length > 1000 ? '#' : ''}${query.length ? '?' : ''}${query}`;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user