mirror of
https://github.com/cmur2/dyndnsd.git
synced 2024-12-22 00:54:22 +01:00
responder: fix bug
This commit is contained in:
parent
08eaacb6ab
commit
bd3c5d3234
@ -28,9 +28,9 @@ module Dyndnsd
|
|||||||
|
|
||||||
def decorate_other_response(status_code, headers, body)
|
def decorate_other_response(status_code, headers, body)
|
||||||
if status_code == 400
|
if status_code == 400
|
||||||
[status_code, headers, "Bad Request"]
|
[status_code, headers, ["Bad Request"]]
|
||||||
elsif status_code == 401
|
elsif status_code == 401
|
||||||
[status_code, headers, "badauth"]
|
[status_code, headers, ["badauth"]]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -28,9 +28,9 @@ module Dyndnsd
|
|||||||
|
|
||||||
def decorate_other_response(status_code, headers, body)
|
def decorate_other_response(status_code, headers, body)
|
||||||
if status_code == 400
|
if status_code == 400
|
||||||
[status_code, headers, "Bad Request"]
|
[status_code, headers, ["Bad Request"]]
|
||||||
elsif status_code == 401
|
elsif status_code == 401
|
||||||
[status_code, headers, "Unauthorized"]
|
[status_code, headers, ["Unauthorized"]]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user