Forgot to escape the ?
[catagits/Catalyst-Action-REST.git] / lib / Catalyst / Action / Serialize / YAML / HTML.pm
index 54791b4..40a04f7 100644 (file)
@@ -29,7 +29,7 @@ sub execute {
                               sub {
                                   my($uri, $orig_uri) = @_;
                                   my $newuri;
-                                  if ($uri =~ /?/) {
+                                  if ($uri =~ /\?/) {
                                       $newuri = $uri . "&content-type=text/html";
                                   } else {
                                       $newuri = $uri . "?content-type=text/html";