lib/httpx/transcoder/form.rb in httpx-0.17.0 vs lib/httpx/transcoder/form.rb in httpx-0.18.0

- old
+ new

@@ -48,10 +48,10 @@ end def decode(response) content_type = response.content_type.mime_type - raise Error, "invalid form mime type (#{content_type})" unless content_type == "application/x-www-form-urlencoded" + raise HTTPX::Error, "invalid form mime type (#{content_type})" unless content_type == "application/x-www-form-urlencoded" Decoder end end register "form", Form