| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 4cda83d commit d1826fe
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2149,6 +2149,7 @@ function doSendFileFD(session, options, fd, headers, streamOptions, err, stat) { | |||
| 2149 | 2149 | isDirectory) { | |
| 2150 | 2150 | const err = isDirectory ? | |
| 2151 | 2151 | new ERR_HTTP2_SEND_FILE() : new ERR_HTTP2_SEND_FILE_NOSEEK(); | |
| 2152 | + tryClose(fd); | ||
| 2152 | 2153 | if (onError) | |
| 2153 | 2154 | onError(err); | |
| 2154 | 2155 | else | |
@@ -2179,6 +2180,7 @@ function doSendFileFD(session, options, fd, headers, streamOptions, err, stat) { | |||
| 2179 | 2180 | if ((typeof options.statCheck === 'function' && | |
| 2180 | 2181 | options.statCheck.call(this, stat, headers) === false) || | |
| 2181 | 2182 | (this[kState].flags & STREAM_FLAGS_HEADERS_SENT)) { | |
| 2183 | + tryClose(fd); | ||
| 2182 | 2184 | return; | |
| 2183 | 2185 | } | |
| 2184 | 2186 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments