Fixes, issue with net/http requiring accepts-encoding for ruby 2.