Skip to content

Commit bbb29fe

Browse files
committed
Merge pull request #47 from zweite/master
fix readme. should require resty.http module
2 parents 248736f + ab91198 commit bbb29fe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ server {
5656
content_by_lua '
5757

5858
-- For simple singleshot requests, use the URI interface.
59+
local http = require "resty.http"
5960
local httpc = http.new()
6061
local res, err = httpc:request_uri("http://example.com/helloworld", {
6162
method = "POST",

0 commit comments

Comments
 (0)