responder: fix bug

This commit is contained in:
cn 2018-02-02 16:44:50 +01:00
parent 08eaacb6ab
commit bd3c5d3234
2 changed files with 4 additions and 4 deletions

View File

@ -28,9 +28,9 @@ module Dyndnsd
def decorate_other_response(status_code, headers, body)
if status_code == 400
[status_code, headers, "Bad Request"]
[status_code, headers, ["Bad Request"]]
elsif status_code == 401
[status_code, headers, "badauth"]
[status_code, headers, ["badauth"]]
end
end

View File

@ -28,9 +28,9 @@ module Dyndnsd
def decorate_other_response(status_code, headers, body)
if status_code == 400
[status_code, headers, "Bad Request"]
[status_code, headers, ["Bad Request"]]
elsif status_code == 401
[status_code, headers, "Unauthorized"]
[status_code, headers, ["Unauthorized"]]
end
end