mirror of
https://github.com/google/nomulus
synced 2026-01-08 23:23:32 +00:00
Set method to POST on actions called from cron fanout
The default is to support GET, which doesn't work with cron fanout which only uses POST. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=134284855
This commit is contained in:
@@ -18,6 +18,7 @@ import static com.google.common.base.Verify.verifyNotNull;
|
||||
import static google.registry.mapreduce.MapreduceRunner.PARAM_DRY_RUN;
|
||||
import static google.registry.model.ofy.ObjectifyService.ofy;
|
||||
import static google.registry.model.registry.Registries.getTldsOfType;
|
||||
import static google.registry.request.Action.Method.POST;
|
||||
|
||||
import com.google.appengine.tools.mapreduce.Mapper;
|
||||
import com.google.common.base.Function;
|
||||
@@ -52,7 +53,7 @@ import javax.inject.Inject;
|
||||
*
|
||||
* <p>See: https://www.youtube.com/watch?v=xuuv0syoHnM
|
||||
*/
|
||||
@Action(path = "/_dr/task/deleteProberData")
|
||||
@Action(path = "/_dr/task/deleteProberData", method = POST)
|
||||
public class DeleteProberDataAction implements Runnable {
|
||||
|
||||
private static final FormattingLogger logger = FormattingLogger.getLoggerForCallerClass();
|
||||
|
||||
Reference in New Issue
Block a user