From dfcfbf472b3874fbfed5c3ffe13d5fa315ed9e26 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Wed, 20 Sep 2017 05:53:33 +0200 Subject: [PATCH] [mod] apparently yunohost standard is to return 201 --- dynette.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dynette.rb b/dynette.rb index 851555e..a966979 100755 --- a/dynette.rb +++ b/dynette.rb @@ -234,7 +234,7 @@ put '/migrate_key_to_sha512/:public_key' do # himself `rndc flush` - halt 200, { :public_key => entry.public_key, :subdomain => entry.subdomain, :current_ip => entry.current_ip }.to_json + halt 201, { :public_key => entry.public_key, :subdomain => entry.subdomain, :current_ip => entry.current_ip }.to_json end # Update a sub-domain