Commit 7ee281d
authored
Make a few cleanups to the dripping download handler (#295)
Motivation
The dripping download handler should aim to be as efficient as possible.
Modifications
Avoid creating a second HTTPFields object when we are sending
content-length in the response.
Avoid an extra flush on the response head.
Results
Better performance behaviour.1 parent d5578e7 commit 7ee281d
File tree
1 file changed
+2
-2
lines changed- Sources/NIOHTTPResponsiveness
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
| |||
0 commit comments