5apps / liquor-cabinet

remoteStorage HTTP API, based on Sinatra
MIT License
40 stars 6 forks source link

Wrong content type for HEAD requests on master branch #121

Closed gregkare closed 6 years ago

gregkare commented 6 years ago

Output from the API test suite:

Requests::HEAD a JSON object
  test_0001_works                                                 FAIL (0.04s)
Minitest::Assertion:         Expected: "application/json"
          Actual: "text/html;charset=utf-8"
        (eval):8:in `must_equal'
        ./api-test-suite/api_spec.rb:279:in `block (3 levels) in <top (required)>'

The get_head method doesn't set the Content-Type header