-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Experiment: Don't compress json sent to the server
lzstring has performance problems on the server-side, causing issues for session recording: see PostHog/posthog#2560 Note that this is not a backwards-compatible change, requires a change on posthog side to support plain/text header as well. We can't use application/json as content-type as that would trigger CORS requests for every xhr request as that's considered a custom header.
- Loading branch information
Showing
4 changed files
with
28 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`encodePostDataBody() handles arrays 1`] = `"data=foo%2Cbar"`; | ||
exports[`formEncodePostData() handles arrays 1`] = `"data=foo%2Cbar"`; | ||
|
||
exports[`encodePostDataBody() handles data with compression 1`] = `"data=content&compression=lz64"`; | ||
exports[`formEncodePostData() handles data with compression 1`] = `"data=content&compression=lz64"`; | ||
|
||
exports[`encodePostDataBody() handles objects 1`] = `"data=content"`; | ||
exports[`formEncodePostData() handles objects 1`] = `"data=content"`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters