Skip to content

Commit

Permalink
use ngx.HTTP_OK replace 200 in REAME
Browse files Browse the repository at this point in the history
  • Loading branch information
yzprofile committed Dec 28, 2015
1 parent 8ea5872 commit 8e0458a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,14 +208,14 @@ content_by_lua '
local status, rv = dyups.update("test", [[server 127.0.0.1:8088;]]);
ngx.print(status, rv)
if status ~= 200 then
if status ~= ngx.HTTP_OK then
ngx.print(status, rv)
return
end
ngx.print("update success")
status, rv = dyups.delete("test")
if status ~= 200 then
if status ~= ngx.HTTP_OK then
ngx.print(status, rv)
return
end
Expand Down

0 comments on commit 8e0458a

Please sign in to comment.