Unwind bit.ly link

This commit is contained in:
Marcel Stör 2017-04-22 22:57:37 +02:00
parent ef1654fa1e
commit 572e4235fb
1 changed files with 1 additions and 1 deletions

View File

@ -322,7 +322,7 @@ srv:on("receive", function(sck, c) print(c) end)
srv:on("connection", function(sck, c) srv:on("connection", function(sck, c)
-- 'Connection: close' rather than 'Connection: keep-alive' to have server -- 'Connection: close' rather than 'Connection: keep-alive' to have server
-- initiate a close of the connection after final response (frees memory -- initiate a close of the connection after final response (frees memory
-- earlier here), http://bit.ly/2pkOrsi -- earlier here), https://tools.ietf.org/html/rfc7230#section-6.6
sck:send("GET /get HTTP/1.1\r\nHost: httpbin.org\r\nConnection: close\r\nAccept: */*\r\n\r\n") sck:send("GET /get HTTP/1.1\r\nHost: httpbin.org\r\nConnection: close\r\nAccept: */*\r\n\r\n")
end) end)
srv:connect(80,"httpbin.org") srv:connect(80,"httpbin.org")