HaxeFoundation / haxe

Haxe - The Cross-Platform Toolkit
https://haxe.org
6.03k stars 648 forks source link

Only write default Connection header to HTTP requests if needed #11604

Closed ianxm closed 3 months ago

ianxm commented 3 months ago

Currently sys/Http writes "Connection: Close" to all requests, but this should not be done if, for example, the headers provided for a given request include a "Connection: Keep-Alive" header.