Commit 1dc956d
fix: serve exact PDF bytes in preview routes, not Node's shared buffer pool
Buffer.buffer on pooled small buffers returns the whole 8KB pool with a
non-zero offset, so preview PDFs started with garbage instead of %PDF-
and the iframe viewer on the sign page failed to render.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 884d131 commit 1dc956d
2 files changed
Lines changed: 6 additions & 2 deletions
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
86 | 88 | | |
87 | 89 | | |
88 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
82 | 84 | | |
83 | 85 | | |
84 | 86 | | |
| |||
0 commit comments