Update SocketClient to include padding parameter in API requests
All checks were successful
farmcontrol/farmcontrol-server/pipeline/head This commit looks good

- Modified the API request parameters in the `SocketClient` class to include a `padding` option set to `false` for both PDF and image type requests, enhancing control over response formatting.
This commit is contained in:
Tom Butcher 2026-08-21 22:39:27 +01:00
parent 470a0edd80
commit e03a56bb78

View File

@ -553,7 +553,7 @@ export class SocketClient {
object: templateData.object, object: templateData.object,
}, },
{ {
params: { type: "pdf" }, params: { type: "pdf", padding: false },
responseType: "arraybuffer", responseType: "arraybuffer",
headers: this.getApiHeaders(), headers: this.getApiHeaders(),
}, },
@ -578,7 +578,7 @@ export class SocketClient {
width: templateData.width, width: templateData.width,
}, },
{ {
params: { type }, params: { type, padding: false },
responseType: "arraybuffer", responseType: "arraybuffer",
headers: this.getApiHeaders(), headers: this.getApiHeaders(),
}, },