File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -282,15 +282,15 @@ public class HTTPClient {
282
282
}
283
283
284
284
let eventLoopChannel : EventLoopFuture < Channel >
285
- if request. scheme == " file " {
286
- eventLoopChannel = bootstrap. connect ( unixDomainSocketPath: request . url . path)
285
+ if request. scheme == " file " , let baseURL = request . url . baseURL {
286
+ eventLoopChannel = bootstrap. connect ( unixDomainSocketPath: baseURL . path)
287
287
} else {
288
288
let address = self . resolveAddress ( request: request, proxy: self . configuration. proxy)
289
289
eventLoopChannel = bootstrap. connect ( host: address. host, port: address. port)
290
290
}
291
291
292
292
eventLoopChannel. map { channel in
293
- task. setChannel ( channel)
293
+ task. setChannel ( channel)
294
294
}
295
295
. flatMap { channel in
296
296
channel. writeAndFlush ( request)
You can’t perform that action at this time.
0 commit comments