Skip to content

Commit

Permalink
Typos: it's vs its
Browse files Browse the repository at this point in the history
  • Loading branch information
daurnimator committed Jul 16, 2018
1 parent d5d948b commit 921e04d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/modules/http.socks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion http/request.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion http/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 921e04d

Please sign in to comment.