Flip the most-appropriate-mime-type arguments
As all the calls are wrong.
This commit is contained in:
parent
b71214083d
commit
0611684b0d
2 changed files with 4 additions and 4 deletions
|
|
@ -325,8 +325,8 @@ port. Also, the port used can be changed by passing the --port option.\n"
|
|||
(or (resource-pool-timeout-error? exn)
|
||||
(resource-pool-too-many-waiters-error? exn))))
|
||||
(case (most-appropriate-mime-type
|
||||
mime-types
|
||||
'(text/html application/json))
|
||||
'(text/html application/json)
|
||||
mime-types)
|
||||
((application/json)
|
||||
(apply
|
||||
values
|
||||
|
|
|
|||
|
|
@ -33,8 +33,8 @@
|
|||
|
||||
uri-encode-filename))
|
||||
|
||||
(define (most-appropriate-mime-type accepted-mime-types
|
||||
supported-mime-types)
|
||||
(define (most-appropriate-mime-type supported-mime-types
|
||||
accepted-mime-types)
|
||||
(or
|
||||
;; Pick the first supported mime-type
|
||||
(find (lambda (accepted-mime-type)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue