[GODCC][COMMITTED] http.a68: avoid unnecessary mode HTTPHdr

Jose E. Marchesi jemarch@gnu.org
Tue Apr 22 01:20:18 GMT 2025


---
 src/http.a68 | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/http.a68 b/src/http.a68
index 4333830..5726546 100644
--- a/src/http.a68
+++ b/src/http.a68
@@ -41,9 +41,7 @@
   be notified in a single call to the callback.
 #
 
-mode HTTPHdr = struct (string n, v);
-
-proc http_get = (string uri, []HTTPHdr headers,
+proc http_get = (string uri, []struct (string n, v) headers,
                  int socket, proc(int,int,int)void h,
                  bool fragmented) void:
 begin # Prepare the header to send.  #
@@ -59,7 +57,7 @@ begin # Prepare the header to send.  #
       http_process_response (socket, h, fragmented)
 end;
 
-proc http_post = (string uri, arg, []HTTPHdr headers,
+proc http_post = (string uri, arg, []struct (string n, v) headers,
                   int socket, proc(int,int,int)void h,
                   bool fragmented) void:
 begin # Prepare the header to send.  #
-- 
2.30.2



More information about the Algol68 mailing list