Skip to content
Discussion options

You must be logged in to vote

It should support binary content, according to this test for ETAPI:

    it("supports binary content", async() => {
        await supertest(app)
            .put(`/etapi/attachments/${createdAttachmentId}/content`)
            .auth(USER, token, { "type": "basic"})
            .set("Content-Type", "application/octet-stream")
            .set("Content-Transfer-Encoding", "binary")
            .send(Buffer.from("Hello world"))
            .expect(204);
    });

Notice the Content-Type and the Content-Transfer-Encoding.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@eliandoran
Comment options

Answer selected by eliandoran
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants