File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -162,11 +162,9 @@ class PingUploader implements PingsDatabaseObserver {
162162 finalBody = gzipSync ( encodedBody ) ;
163163 bodySizeInBytes = finalBody . length ;
164164 headers [ "Content-Encoding" ] = "gzip" ;
165- headers [ "Content-Length" ] = finalBody . length . toString ( ) ;
166165 } catch {
167166 finalBody = stringifiedBody ;
168167 bodySizeInBytes = encodedBody . length ;
169- headers [ "Content-Length" ] = stringifiedBody . length . toString ( ) ;
170168 }
171169
172170 if ( bodySizeInBytes > this . policy . maxPingBodySize ) {
@@ -175,6 +173,7 @@ class PingUploader implements PingsDatabaseObserver {
175173 ) ;
176174 }
177175
176+ headers [ "Content-Length" ] = bodySizeInBytes . toString ( ) ;
178177 return {
179178 headers,
180179 payload : finalBody
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ async function fillUpPingsDatabase(numPings: number): Promise<string[]> {
4141 * Waits for a PingUploader to end its uploading job,
4242 * if it's actualy doing any.
4343 *
44- * By default will sait for the uploader on the Glean singleton.
44+ * By default will wait for the uploader on the Glean singleton.
4545 *
4646 * @param uploader The uploader to wait for.
4747 */
You can’t perform that action at this time.
0 commit comments