Commit 68baeff
committed
Fix buildDocument corrupting after second call (issue #626)
Calling buildDocument resulted in content_length being set to NaN, as
instead of passing a string to the internal 'out' function, a number
was passed in the last call. Since content_length was being added onto
each time, this last call corrupts all subsequent document builds.
Also, since content_length was not reset after the call, subsequent
calls would have compounded length even if the document wasn't
corrupted.1 parent 76c004c commit 68baeff
3 files changed
+8
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
| 15 | + | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
833 | 833 | | |
834 | 834 | | |
835 | 835 | | |
| 836 | + | |
836 | 837 | | |
837 | 838 | | |
838 | 839 | | |
| |||
885 | 886 | | |
886 | 887 | | |
887 | 888 | | |
888 | | - | |
| 889 | + | |
889 | 890 | | |
890 | 891 | | |
891 | 892 | | |
| |||
2028 | 2029 | | |
2029 | 2030 | | |
2030 | 2031 | | |
2031 | | - | |
| 2032 | + | |
2032 | 2033 | | |
2033 | 2034 | | |
2034 | 2035 | | |
| |||
0 commit comments