From 0a32816ce04a202d84ab822c2a0efcb60384e5e3 Mon Sep 17 00:00:00 2001 From: Sean Collins Date: Thu, 25 Jul 2024 12:05:24 -0600 Subject: [PATCH] Add :form and :multipart formats --- lib/hanami/action/mime.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/hanami/action/mime.rb b/lib/hanami/action/mime.rb index 56706d7a..abccc7af 100644 --- a/lib/hanami/action/mime.rb +++ b/lib/hanami/action/mime.rb @@ -15,6 +15,8 @@ module Mime # rubocop:disable Metrics/ModuleLength TYPES = { txt: "text/plain", html: "text/html", + form: "application/x-www-form-urlencoded", + multipart: "multipart/form-data", json: "application/json", manifest: "text/cache-manifest", atom: "application/atom+xml",