responder: fix bug

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

No files matched your search

+2 -2
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
+2 -2
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