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)
|
(or (resource-pool-timeout-error? exn)
|
||||||
(resource-pool-too-many-waiters-error? exn))))
|
(resource-pool-too-many-waiters-error? exn))))
|
||||||
(case (most-appropriate-mime-type
|
(case (most-appropriate-mime-type
|
||||||
mime-types
|
'(text/html application/json)
|
||||||
'(text/html application/json))
|
mime-types)
|
||||||
((application/json)
|
((application/json)
|
||||||
(apply
|
(apply
|
||||||
values
|
values
|
||||||
|
|
|
||||||
|
|
@ -33,8 +33,8 @@
|
||||||
|
|
||||||
uri-encode-filename))
|
uri-encode-filename))
|
||||||
|
|
||||||
(define (most-appropriate-mime-type accepted-mime-types
|
(define (most-appropriate-mime-type supported-mime-types
|
||||||
supported-mime-types)
|
accepted-mime-types)
|
||||||
(or
|
(or
|
||||||
;; Pick the first supported mime-type
|
;; Pick the first supported mime-type
|
||||||
(find (lambda (accepted-mime-type)
|
(find (lambda (accepted-mime-type)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue