"X-Atlassian-Token": "nocheck" not beeing sent by requestUrl

What I’m trying to do

Greetings I’m working on an Obsidian plugin that recreates the file into a confluence page and I’m trying to send an image to confluence if the markdown links/displays to an image
according to Confluence API i need to send X-Atlassian-Token: nocheck but the requestUrl function looks like it doesn’t send it

Things I have tried

here is a snippet of code with the request

		var post_typedArray = new Uint8Array(postArray);

		const response = await requestUrl({
			url: url.toString(),
			method: "POST",
			body: post_typedArray,
			headers: {
				"X-Atlassian-Token": "nocheck",
				Authorization: `Basic ${creds}`,
			throw: false,

but when I make the request Atlassian returns a 403 with the error

Uncaught (in promise) SyntaxError: Unexpected token 'X', "XSRF check failed" is not valid JSON

meaning the header is not sent. does anyone know why/how I can make requestUrl send the header?

problem solved by doing

headers: {
				Accept: "application/json",
				"User-Agent": "Obsidian.md",
				Authorization: `Basic ${creds}`,
				"Content-Type": `multipart/form-data; boundary=${boundary}`,
			throw: false,

huge thanks to GitHub - markdown-confluence/markdown-confluence: Publish your Markdown Files to Confluence