From 714f935b7924ed48edab66963bad26047013d474 Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Wed, 5 Aug 2026 16:31:36 +1200 Subject: [PATCH] Rename the form data parser media type constant. --- lib/protocol/url/form_data/parser.rb | 2 +- releases.md | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/protocol/url/form_data/parser.rb b/lib/protocol/url/form_data/parser.rb index 105403c..96e7e8f 100644 --- a/lib/protocol/url/form_data/parser.rb +++ b/lib/protocol/url/form_data/parser.rb @@ -12,7 +12,7 @@ module URL module FormData # Incrementally parses `application/x-www-form-urlencoded` form data. class Parser - CONTENT_TYPE = "application/x-www-form-urlencoded" + MEDIA_TYPE = "application/x-www-form-urlencoded" # The encoded body size limit. SIZE_LIMIT = 2 * 1024 * 1024 diff --git a/releases.md b/releases.md index 19c44c5..05aac8b 100644 --- a/releases.md +++ b/releases.md @@ -1,5 +1,9 @@ # Releases +## Unreleased + + - Rename `Protocol::URL::FormData::Parser::CONTENT_TYPE` to `MEDIA_TYPE`. + ## v0.9.0 - Add `Protocol::URL::LimitError` for configured processing limits.