Mercurial > prosody-hg
comparison net/http.lua @ 8195:3accfae91946
net.http: Remove duplicate 'request' entry
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 07 Jul 2017 20:16:00 +0200 |
| parents | 375cf924fce1 |
| children | bc2bcfa63b43 |
comparison
equal
deleted
inserted
replaced
| 8194:ba9cd8447578 | 8195:3accfae91946 |
|---|---|
| 233 request = request; | 233 request = request; |
| 234 new = options and function (new_options) | 234 new = options and function (new_options) |
| 235 return new(setmetatable(new_options, { __index = options })); | 235 return new(setmetatable(new_options, { __index = options })); |
| 236 end or new; | 236 end or new; |
| 237 events = events.new(); | 237 events = events.new(); |
| 238 request = request; | |
| 239 }; | 238 }; |
| 240 return http; | 239 return http; |
| 241 end | 240 end |
| 242 | 241 |
| 243 local default_http = new(); | 242 local default_http = new(); |
