Skip to content

Commit

Permalink
Reduce the query param cut-off to 1000 chars (digitalocean#259)
Browse files Browse the repository at this point in the history
* Reduce the query param cut-off to 1000 chars

* Update copyright
  • Loading branch information
MattIPv4 authored May 13, 2021
1 parent a2e64e6 commit fe5f2b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nginxconfig/util/share_query.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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}`;
};

0 comments on commit fe5f2b2

Please sign in to comment.