PNixx / clickhouse-activerecord

A Ruby database ActiveRecord driver for ClickHouse
MIT License
192 stars 96 forks source link

Net::HTTP Content-Type warnings #126

Open N0xFF opened 6 months ago

N0xFF commented 6 months ago

Using Net::HTTP without content type generates a lot of warnings when verbose mode is enabled.

/home/virtual/.rbenv/versions/3.1.4/lib/ruby/3.1.0/net/http/generic_request.rb:187: warning: net/http: Content-Type did not set; using application/x-www-form-urlencoded
/home/virtual/.rbenv/versions/3.1.4/lib/ruby/3.1.0/net/http/generic_request.rb:187: warning: net/http: Content-Type did not set; using application/x-www-form-urlencoded
/home/virtual/.rbenv/versions/3.1.4/lib/ruby/3.1.0/net/http/generic_request.rb:187: warning: net/http: Content-Type did not set; using application/x-www-form-urlencoded
/home/virtual/.rbenv/versions/3.1.4/lib/ruby/3.1.0/net/http/generic_request.rb:187: warning: net/http: Content-Type did not set; using application/x-www-form-urlencoded
/home/virtual/.rbenv/versions/3.1.4/lib/ruby/3.1.0/net/http/generic_request.rb:187: warning: net/http: Content-Type did not set; using application/x-www-form-urlencoded
N0xFF commented 6 months ago

It's better to enable verbose mode on CI and fix them. In projects with verbose mode, it's not easy to determine where they came from.