diff options
| author | 2023-03-26 16:00:37 -0400 | |
|---|---|---|
| committer | 2023-03-26 16:00:37 -0400 | |
| commit | 9304b7d1434a4e73d1cba61ba2f6eda35fd07b9b (patch) | |
| tree | 6b144053b3719664164077a25557c442c776c01f | |
| parent | janet: remove jurl/writer (diff) | |
janet: no longer sort multivalue header lists
| -rw-r--r-- | jurl/text.janet | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jurl/text.janet b/jurl/text.janet index 5ab8b72..376f955 100644 --- a/jurl/text.janet +++ b/jurl/text.janet @@ -57,8 +57,8 @@ (each [k v] ps (put out k (let [o (out k)] (cond - (bytes? o) (sorted [o v]) - (indexed? o) (sorted [;o v]) + (bytes? o) [o v] + (indexed? o) [;o v] v)))) (freeze out)) @@ -73,7 +73,7 @@ However, if multiple headers with the same key are present, they are joined in a list Tuples are non-problematic since they do not modify content, unlike the "," approach. - Output is sorted by key, and multivalue lists are sorted by contents. + Output is sorted by key. Multivalue lists are in the order they appeared in. `` [s] (or (-?>> s |
