From e207785e1fc78d06381b369c3b71b7e6becdbf80 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Sat, 6 Feb 2021 22:33:39 +0100 Subject: feat(users/Profpatsch/{netencode,http-parse}): use HashMap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `U::Record` is required to be a hash map (later keys should be ignored), so why not do the hash map immediately. This surfaced a problem with read-http, because duplicate headers in http are possible, but before they’d be silently ignored. Now we merge them into a `U::List` in case, to be handled by consumers of read-http. Change-Id: Ifd594916f76e5acf9d08e705e0dec2c10a0081c9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2490 Tested-by: BuildkiteCI Reviewed-by: Profpatsch --- users/Profpatsch/read-http.nix | 1 - 1 file changed, 1 deletion(-) (limited to 'users/Profpatsch/read-http.nix') diff --git a/users/Profpatsch/read-http.nix b/users/Profpatsch/read-http.nix index aff1fa8662..614993c457 100644 --- a/users/Profpatsch/read-http.nix +++ b/users/Profpatsch/read-http.nix @@ -2,7 +2,6 @@ let - # reads a http request (stdin), and writes all headers to stdout, as netencoded dict read-http = depot.users.Profpatsch.writers.rustSimple { name = "read-http"; dependencies = [ -- cgit 1.4.1