Mercurial Hosting > luan
diff src/luan/modules/http/Http.luan @ 1150:0842b9b570f8
change http headers interface
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 04 Feb 2018 18:03:37 -0700 |
parents | d30d400fd43d |
children | 21d157b153fe |
line wrap: on
line diff
--- a/src/luan/modules/http/Http.luan Sun Feb 04 17:23:20 2018 -0700 +++ b/src/luan/modules/http/Http.luan Sun Feb 04 18:03:37 2018 -0700 @@ -52,8 +52,6 @@ local function new_common(this) this = this or {} this.headers = {} - this.header = {__plural=this.headers} - set_metatable(this.header,singular_metatable) return this end @@ -86,7 +84,7 @@ end function this.url() - local url = this.scheme.."://"..this.header.host..this.path + local url = this.scheme.."://"..this.headers["host"]..this.path if this.method ~= "POST" then local query = this.query_string() if query ~= nil then