eyre: use jam mime type for PUT mode detection

Making this consistent with the mime type used for GET requests.
This commit is contained in:
fang 2023-04-12 19:19:13 +02:00
parent d32527ba19
commit 171142fd31
No known key found for this signature in database
GPG Key ID: EB035760C1BBA972

View File

@ -214,7 +214,7 @@
^- ?(%json %jam)
=+ ^- [hed=@t jam=@t]
?: ?=(%'GET' met) ['x-channel-format' 'application/x-urb-jam']
['content-type' 'application/octet-stream']
['content-type' 'application/x-urb-jam']
=+ typ=(bind (get-header:http hed hes) :(cork trip cass crip))
?:(=(`jam typ) %jam %json)
:: +parse-channel-request: parses a list of channel-requests