Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent warnings #185

Merged
merged 1 commit into from
Sep 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions test/net/http/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def start
loop do
socket = @ssl_server ? @ssl_server.accept : @server.accept
run(socket)
rescue => e
rescue
ensure
socket.close if socket
end
Expand Down Expand Up @@ -58,7 +58,7 @@ def handle_request(socket)
request_line = socket.gets
return if request_line.nil? || request_line.strip.empty?

method, path, version = request_line.split
method, path, _version = request_line.split
headers = {}
while (line = socket.gets)
break if line.strip.empty?
Expand Down Expand Up @@ -121,10 +121,6 @@ def continue
@socket.write "HTTP\/1.1 100 continue\r\n\r\n"
end

def query
@query
end

def remote_ip
@socket.peeraddr[3]
end
Expand Down