]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/furnace/actions/actions.factor
furnace.actions: Fix PUT, PATCH
[factor.git] / basis / furnace / actions / actions.factor
index 9e639fe7aef24c3c8a83e69436360954a9b1fbb6..f7f3cb59d6ef583eedc60615282242a1b7eca549 100644 (file)
@@ -75,7 +75,7 @@ CONSTANT: revalidate-url-key "__u"
 
 : handle-put ( action -- response )
     '[
-        _ dup submit>> [
+        _ dup replace>> [
             [ validate>> call( -- ) ]
             [ authorize>> call( -- ) ]
             [ replace>> call( -- response ) ]
@@ -85,7 +85,7 @@ CONSTANT: revalidate-url-key "__u"
 
 : handle-patch ( action -- response )
     '[
-        _ dup submit>> [
+        _ dup update>> [
             [ validate>> call( -- ) ]
             [ authorize>> call( -- ) ]
             [ update>> call( -- response ) ]