fix: OPTIONS not accepting all available media

This commit is contained in:
steve-chavez
2023-06-13 22:00:21 -05:00
committed by Steve Chavez
parent 11a9849152
commit fad47324c3
3 changed files with 21 additions and 3 deletions
+2 -2
View File
@@ -375,8 +375,8 @@ requestMediaTypes conf action path =
ActionRead _ -> defaultMediaTypes ++ rawMediaTypes
ActionInvoke _ -> invokeMediaTypes
ActionInspect _ -> [MTOpenAPI, MTApplicationJSON]
ActionInfo -> [MTTextCSV]
_ -> defaultMediaTypes
ActionInfo -> defaultMediaTypes
ActionMutate _ -> defaultMediaTypes
where
invokeMediaTypes =
defaultMediaTypes