mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-11-15 00:02:11 -05:00
14 lines
261 B
Ruby
14 lines
261 B
Ruby
# frozen_string_literal: true
|
|
|
|
require_relative "test"
|
|
|
|
# from https://gist.github.com/peterc/1425383
|
|
|
|
class DNSErrorServer < TestDNSResolver
|
|
private
|
|
|
|
def response_header(query)
|
|
"#{query[0, 2]}\x81\x02#{query[4, 2]}\x00\x00\x00\x00\x00\x00".b
|
|
end
|
|
end
|