From fe5f2b234d39ab334f1e4fc835eabec9d3f1bdc0 Mon Sep 17 00:00:00 2001 From: "Matt (IPv4) Cowley" Date: Thu, 13 May 2021 15:27:17 +0100 Subject: [PATCH] Reduce the query param cut-off to 1000 chars (#259) * Reduce the query param cut-off to 1000 chars * Update copyright --- src/nginxconfig/util/share_query.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nginxconfig/util/share_query.js b/src/nginxconfig/util/share_query.js index 4043ff4..07e2fbf 100644 --- a/src/nginxconfig/util/share_query.js +++ b/src/nginxconfig/util/share_query.js @@ -1,5 +1,5 @@ /* -Copyright 2020 DigitalOcean +Copyright 2021 DigitalOcean This code is licensed under the MIT License. You may obtain a copy of the License at @@ -30,5 +30,5 @@ import exportData from './export_data'; export default (domains, global) => { const data = exportData(domains, global); const query = qs.stringify(data, { allowDots: true }); - return `${query.length > 4000 ? '#' : ''}${query.length ? '?' : ''}${query}`; + return `${query.length > 1000 ? '#' : ''}${query.length ? '?' : ''}${query}`; };