Skip to content

Commit 3f3a472

Browse files
committed
fix: code tweaks for rn
1 parent dd1c474 commit 3f3a472

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

test/http.spec.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,9 @@ describe('http', function () {
160160
const body = new Uint8Array(1000000 / 2)
161161
const request = await HTTP.post(`${ECHO_SERVER}/echo`, {
162162
body,
163+
headers: {
164+
'Content-Type': 'application/octet-stream'
165+
},
163166
onUploadProgress: (progress) => {
164167
expect(progress).to.have.property('lengthComputable').to.be.a('boolean')
165168
expect(progress).to.have.property('total', body.byteLength)

test/text-codec.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const TextEncoder = require('../src/text-encoder')
66
const TextDecoder = require('../src/text-decoder')
77

88
describe('text encode/decode', () => {
9-
const data = Uint8Array.from([
9+
const data = new Uint8Array([
1010
104,
1111
101,
1212
108,

0 commit comments

Comments
 (0)