We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b867d2 commit 05b2b53Copy full SHA for 05b2b53
README.md
@@ -56,7 +56,7 @@ server {
56
location /simpleinterface {
57
resolver 8.8.8.8; # use Google's open DNS server for an example
58
59
- content_by_lua '
+ content_by_lua_block {
60
61
-- For simple singleshot requests, use the URI interface.
62
local http = require "resty.http"
@@ -87,12 +87,12 @@ server {
87
end
88
89
ngx.say(res.body)
90
- ';
+ }
91
}
92
93
94
location /genericinterface {
95
96
97
98
local httpc = http.new()
@@ -134,7 +134,7 @@ server {
134
ngx.say("failed to set keepalive: ", err)
135
return
136
137
138
139
140
````
0 commit comments