]> gitweb.factorcode.org Git - factor.git/commitdiff
http: remove some dead code but i wanted to keep it in git history
authorDoug Coleman <doug.coleman@gmail.com>
Wed, 29 Mar 2023 05:01:45 +0000 (00:01 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Fri, 14 Apr 2023 04:18:02 +0000 (23:18 -0500)
basis/http/client/client.factor
basis/http/http.factor

index d6ed9c684c6902c242c4c2b438896f87a138322d..af57ad4ba1ae352735f92649a845a21a9bacb2db 100644 (file)
@@ -263,7 +263,6 @@ SYMBOL: request-socket
 
 : add-default-headers ( request -- request )
     dup url>> protocol>> {
-        ! { [ dup { "http" "https" } member? ] [ drop add-connection-close-header ] }
         { [ dup { "ws" "wss" } member? ] [ drop add-websocket-upgrade-headers ] }
         [ drop ]
     } cond ;
index 6c05a2709768ff5d0131d15c48ac49d63d67b1e5..a2b7afffc903ec799a91782b961484a62c95c91b 100644 (file)
@@ -170,9 +170,6 @@ TUPLE: request
         "Factor http.client" "User-Agent" set-header
         max-redirects >>redirects ;
 
-: add-connection-close-header ( request -- request )
-    "close" "Connection" set-header ;
-
 : header ( request/response key -- value )
     swap header>> at ;