Skip to content

Commit

Permalink
fix review comments to remove text encoder
Browse files Browse the repository at this point in the history
  • Loading branch information
prakashsvmx committed Nov 29, 2023
1 parent cb7ee3e commit 6ed31b9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/internal/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1955,11 +1955,9 @@ export class TypedClient {
},
},
}
const encoder = new TextEncoder()
const headers = {} as RequestHeaders
const builder = new xml2js.Builder({ headless: true, renderOpts: { pretty: false } })
const payload = builder.buildObject(taggingConfig)
const payloadBuf = Buffer.from(encoder.encode(payload))
const payloadBuf = Buffer.from(builder.buildObject(taggingConfig))
const requestOptions = {
method,
bucketName,
Expand Down

0 comments on commit 6ed31b9

Please sign in to comment.