passbe/beef-migration-test-2 — Issue #208: Separate requester filters and move exceptions
Author: passbe
Created: 2011-12-05 09:25:01+00:00
State: open

Separate the request filters in /lib/filter/requester.rb. Currently, the request is validated as a whole and exceptions are called from the request filter function. Break these these out into individual functions. For example, is_valid_http_verb?() and is_valid_domain?().

Move the exceptions to the caller of the filter function. This should maintain the exception visibility.

Original link: http://code.google.com/p/beef/issues/detail?id=183