Skip to content

Consider Async::HTTP::Internet should use Protocol::HTTP::AcceptEncoding by default. #68

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

Closed
ioquatix opened this issue Apr 18, 2021 · 0 comments
Assignees

Comments

@ioquatix
Copy link
Member

This was a hack we used to PoC:

class Internet < Async::HTTP::Internet
	def client_for(endpoint)
		Protocol::HTTP::AcceptEncoding.new(super).tap do |middleware|
			def middleware.scheme
				"https"
			end
		end
	end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant