diff --git a/doc/modules/http.socks.md b/doc/modules/http.socks.md index fee94ff2..380c63d1 100644 --- a/doc/modules/http.socks.md +++ b/doc/modules/http.socks.md @@ -11,7 +11,7 @@ Returns a *http.socks* object. ### `fdopen(socket)` {#http.socks.fdopen} -This function takes an existing cqueues.socket as a parameter and returns a *http.socks* object with `socket` as it's base. +This function takes an existing cqueues.socket as a parameter and returns a *http.socks* object with `socket` as its base. ### `socks.needs_resolve` {#http.socks.needs_resolve} diff --git a/http/request.lua b/http/request.lua index fccd843f..4fe00bfb 100644 --- a/http/request.lua +++ b/http/request.lua @@ -81,7 +81,7 @@ local function new_from_uri(uri_t, headers) else field = "authorization" end - local userinfo = http_util.decodeURIComponent(uri_t.userinfo) -- XXX: this doesn't seem right, but it's same behaviour as curl + local userinfo = http_util.decodeURIComponent(uri_t.userinfo) -- XXX: this doesn't seem right, but it's the same behaviour as curl headers:upsert(field, "basic " .. basexx.to_base64(userinfo), true) end if not headers:has("user-agent") then diff --git a/http/util.lua b/http/util.lua index 992bb78f..a285791e 100644 --- a/http/util.lua +++ b/http/util.lua @@ -177,7 +177,7 @@ local function imf_date(time) return os.date("!%a, %d %b %Y %H:%M:%S GMT", time) end --- This pattern checks if it's argument is a valid token, if so, it returns it as is. +-- This pattern checks if its argument is a valid token, if so, it returns it as is. -- Otherwise, it returns it as a quoted string (with any special characters escaped) local maybe_quote do local EOF = lpeg.P(-1)