Explorar o código

Force GETS on posts

George Baugh %!s(int64=2) %!d(string=hai) anos
pai
achega
8edcbf26f1
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      lib/Trog/Routes/HTML.pm

+ 3 - 0
lib/Trog/Routes/HTML.pm

@@ -755,6 +755,9 @@ sub post_save ($query) {
     # Ensure there are no null tags
     @{ $query->{tags} } = grep { defined $_ } @{ $query->{tags} };
 
+    # Posts will always be GET
+    $query->{method} = 'GET';
+
     $data->add($query) and die "Could not add post";
     return see_also($to);
 }