mirror of
https://github.com/cmur2/dyndnsd.git
synced 2026-10-12 02:39:40 +02:00
responder: fix bug
This commit is contained in:
1 parent
08eaacb6ab
commit
bd3c5d3234
2 files changed
+4
-4
No files matched your search
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user