]> gitweb.factorcode.org Git - factor.git/commitdiff
furnace.actions: Fix PUT, PATCH
authorMichael Raitza <spacefrogg-git@spacefrogg.net>
Tue, 16 Jan 2024 17:22:08 +0000 (18:22 +0100)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 16 Jan 2024 17:23:28 +0000 (09:23 -0800)
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 ) ]