Commit 10ed0b8
committed
Add HTTP request body size limits and update API docs
Introduced a maximum HTTP body size for the viewer to prevent memory exhaustion, returning 413 if exceeded. Updated the server and viewer code to handle large payloads safely. Expanded the README with detailed REST API endpoint documentation and clarified security considerations.1 parent 2c21c2a commit 10ed0b8
File tree
3 files changed
+49
-7
lines changed- TankAlarm-112025-Server-BluesOpta
- TankAlarm-112025-Viewer-BluesOpta
3 files changed
+49
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
95 | 109 | | |
96 | 110 | | |
97 | 111 | | |
| |||
306 | 320 | | |
307 | 321 | | |
308 | 322 | | |
309 | | - | |
| 323 | + | |
| 324 | + | |
310 | 325 | | |
311 | 326 | | |
312 | 327 | | |
313 | 328 | | |
314 | 329 | | |
315 | | - | |
| 330 | + | |
316 | 331 | | |
317 | 332 | | |
318 | 333 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7186 | 7186 | | |
7187 | 7187 | | |
7188 | 7188 | | |
| 7189 | + | |
| 7190 | + | |
| 7191 | + | |
| 7192 | + | |
| 7193 | + | |
| 7194 | + | |
7189 | 7195 | | |
7190 | 7196 | | |
7191 | 7197 | | |
| |||
Lines changed: 24 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
110 | 115 | | |
111 | 116 | | |
112 | 117 | | |
| |||
393 | 398 | | |
394 | 399 | | |
395 | 400 | | |
396 | | - | |
| 401 | + | |
397 | 402 | | |
398 | 403 | | |
399 | 404 | | |
| |||
584 | 589 | | |
585 | 590 | | |
586 | 591 | | |
| 592 | + | |
587 | 593 | | |
588 | | - | |
| 594 | + | |
589 | 595 | | |
590 | 596 | | |
591 | 597 | | |
592 | 598 | | |
593 | 599 | | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
594 | 606 | | |
595 | 607 | | |
596 | 608 | | |
| |||
603 | 615 | | |
604 | 616 | | |
605 | 617 | | |
606 | | - | |
| 618 | + | |
607 | 619 | | |
608 | 620 | | |
609 | 621 | | |
610 | 622 | | |
| 623 | + | |
611 | 624 | | |
612 | 625 | | |
613 | 626 | | |
| |||
648 | 661 | | |
649 | 662 | | |
650 | 663 | | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
651 | 668 | | |
652 | 669 | | |
653 | 670 | | |
| |||
668 | 685 | | |
669 | 686 | | |
670 | 687 | | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
671 | 692 | | |
672 | 693 | | |
673 | 694 | | |
| |||
0 commit comments