X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Flib%2FTestContentNegotiation%2Fshare%2Ffile.txt;h=4c9f6cf67744a968783948fa3bc5dd18fb1f2470;hp=ab8e0eb7c291c18110c3680733f323e441d81617;hb=88e5a8b0c4d28e46b8ba6b6b9567063e57af9063;hpb=d15db19cbcfd1896251aa7704907fb76b552beb7 diff --git a/t/lib/TestContentNegotiation/share/file.txt b/t/lib/TestContentNegotiation/share/file.txt index ab8e0eb..4c9f6cf 100644 --- a/t/lib/TestContentNegotiation/share/file.txt +++ b/t/lib/TestContentNegotiation/share/file.txt @@ -10,7 +10,7 @@ sub start :Chained(/) PathPrefix CaptureArgs(0) { } sub is_json : Chained('start') PathPart('') Consumes('application/json') Args(0) { pop->res->body('is_json') } sub is_urlencoded : Chained('start') PathPart('') Consumes('application/x-www-form-urlencoded') Args(0) { pop->res->body('is_urlencoded') } sub is_multipart : Chained('start') PathPart('') Consumes('multipart/form-data') Args(0) { pop->res->body('is_multipart') } - + sub under :Chained('start') CaptureArgs(0) { } sub is_json_under : Chained('under') PathPart('') Consumes(JSON) Args(0) { pop->res->body('is_json') } @@ -18,9 +18,9 @@ sub start :Chained(/) PathPrefix CaptureArgs(0) { } sub is_multipart_under : Chained('under') PathPart('') Consumes(Multipart) Args(0) { pop->res->body('is_multipart') } ## Or allow more than one type - + sub multi :Chained('start') CaptureArgs(0) { } - + sub is_more_than_one_1 : Chained('multi') PathPart('') : Consumes('application/x-www-form-urlencoded')