Replies: 1 comment
-
| recently ran into this, i think you can use  | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
undici.request()requests withconnection: keep-aliveby default. Specifyingheaders: { 'connection': 'close' }causes "InvalidArgumentError: invalid connection header" error.I found
dispatcher: new undici.Agent({pipelining: 0})disables keep-alive as follows.Is there any better way to disable HTTP keep-alive? I mean "better" is that it is clear to understand for everyone,
new Agent({pipelining: 0})is not clear for me.Beta Was this translation helpful? Give feedback.
All reactions