Skip to content

Commit

Permalink
not set Header.Connection if forever option is falsy
Browse files Browse the repository at this point in the history
  • Loading branch information
sacru2red committed Oct 25, 2024
1 parent 9598d8e commit 364cc4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class HttpClient implements IHttpClient {
'Accept': 'text/html,application/xhtml+xml,application/xml,text/xml;q=0.9,*/*;q=0.8',
'Accept-Encoding': 'none',
'Accept-Charset': 'utf-8',
'Connection': exoptions.forever ? 'keep-alive' : 'close',
'Connection': exoptions.forever ? 'keep-alive' : null,
'Host': host + (isNaN(port) ? '' : ':' + port),
};
const mergeOptions = ['headers'];
Expand Down

0 comments on commit 364cc4e

Please sign in to comment.