We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1877cd5 commit e7f9596Copy full SHA for e7f9596
src/HttpClient_device.zig
@@ -432,6 +432,9 @@ pub const HttpDevice = struct {
432
pub fn simple_request(self: *HttpDevice, req: SimpleRequest) !void {
433
const runner_inst = self.runner_loop.runner_instance;
434
if (self.runner_loop.get_tx_free_space(runner_inst) < 4) return DriverError.TX_BUFFER_FULL;
435
+ if (req.data) |has_data| {
436
+ if (has_data.len > 230) return HTTPError.DataTooLong;
437
+ }
438
var header_clear: commands.Package = .{};
439
const clear_slice = std.fmt.bufPrint(&header_clear.str, "{s}{s}=0{s}", .{
440
PREFIX,
0 commit comments