module Roda::RodaPlugins::DeleteEmptyHeaders

  1. lib/roda/plugins/delete_empty_headers.rb

The delete_empty_headers plugin deletes any headers whose value is set to the empty string. Because of how default headers are set in Roda, if you have a default header but don’t want to set it for a specific request, you need to use this plugin and set the header value to the empty string, and Roda will automatically delete the header.