File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,9 @@ export interface Uploader {
4343 * Makes a POST request to a given url, with the given headers and body.
4444 *
4545 * @param url The URL to make the POST request
46- * @param body The stringified body of this post request
46+ * @param body The body of this post request. The body may be a stringified JSON or, most likely,
47+ * a Uint8Array containing the gzipped version of said stringified JSON. We need to accept
48+ * both in case the compression fails.
4749 * @param headers Optional header to include in the request
4850 * @returns The status code of the response.
4951 */
Original file line number Diff line number Diff line change 1010
1111// eslint-disable-next-line jsdoc/require-jsdoc
1212export function gzipSync ( ) {
13+ // We throw here because when the gzipping action throws the ping upload manager will
14+ // catch and send the uncompressed ping, which is what we want on QML for the time being.
15+ // We are trying to figure out how to actually add the gzipping step to QML on Bug 1716322.
1316 throw new Error ( "Attempted to use `gzipSync` from QML, but that is not supported." ) ;
1417}
You can’t perform that action at this time.
0 commit comments