Update SocketClient to include padding parameter in API requests
All checks were successful
farmcontrol/farmcontrol-server/pipeline/head This commit looks good
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:
parent
470a0edd80
commit
e03a56bb78
@ -553,7 +553,7 @@ export class SocketClient {
|
||||
object: templateData.object,
|
||||
},
|
||||
{
|
||||
params: { type: "pdf" },
|
||||
params: { type: "pdf", padding: false },
|
||||
responseType: "arraybuffer",
|
||||
headers: this.getApiHeaders(),
|
||||
},
|
||||
@ -578,7 +578,7 @@ export class SocketClient {
|
||||
width: templateData.width,
|
||||
},
|
||||
{
|
||||
params: { type },
|
||||
params: { type, padding: false },
|
||||
responseType: "arraybuffer",
|
||||
headers: this.getApiHeaders(),
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user