Skip to content

Commit b60261e

Browse files
committed
a http => an http
1 parent 9e0677b commit b60261e

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎http/h2_connection.lua‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ function connection_main_loop(self)
233233
-- flag might be `nil` on EOF
234234
ok, connection_error = nil, flag
235235
elseif typ ~= 0x4 then -- XXX: Should this be more strict? e.g. what if it's an ACK?
236-
ok, connection_error = false, h2_error.errors.PROTOCOL_ERROR:new_traceback("A SETTINGS frame MUST be the first frame sent in a HTTP/2 connection")
236+
ok, connection_error = false, h2_error.errors.PROTOCOL_ERROR:new_traceback("A SETTINGS frame MUST be the first frame sent in an HTTP/2 connection")
237237
else
238238
ok, connection_error = handle_frame(self, typ, flag, streamid, payload)
239239
end

‎http/request.lua‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ function request_methods:go(timeout)
366366

367367
local proxy = self.proxy
368368
if proxy == nil and self.proxies then
369-
assert(getmetatable(self.proxies) == http_proxies.mt, "proxies property should be a http.proxies object")
369+
assert(getmetatable(self.proxies) == http_proxies.mt, "proxies property should be an http.proxies object")
370370
local scheme = tls and "https" or "http" -- rather than :scheme
371371
proxy = self.proxies:choose(scheme, host)
372372
end
@@ -420,7 +420,7 @@ function request_methods:go(timeout)
420420
error("cannot use HTTP Proxy with CONNECT method")
421421
end
422422
if proxy.path ~= nil and proxy.path ~= "" then
423-
error("a HTTP proxy cannot have a path component")
423+
error("an HTTP proxy cannot have a path component")
424424
end
425425
-- TODO: Check if :path already has authority?
426426
local old_url = self:to_uri(false)

‎spec/request_spec.lua‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ describe("http.request module", function()
852852
cq:wrap(function()
853853
-- new store so we don't test with the default one (which will outlive tests)
854854
local hsts_store = require "http.hsts".new_store()
855-
do -- first a http request that *shouldn't* fill in the store
855+
do -- first an http request that *shouldn't* fill in the store
856856
local req = request.new_from_uri {
857857
scheme = "http";
858858
host = "localhost";
@@ -867,7 +867,7 @@ describe("http.request module", function()
867867
assert.falsy(hsts_store:check("localhost"))
868868
stream:shutdown()
869869
end
870-
do -- now a https request that *will* fill in the store
870+
do -- now an https request that *will* fill in the store
871871
local req = request.new_from_uri {
872872
scheme = "https";
873873
host = "localhost";

0 commit comments

Comments
 (0)