lib/goliath/rack/formatters/json.rb in goliath-1.0.5 vs lib/goliath/rack/formatters/json.rb in goliath-1.0.6

- old
+ new

@@ -17,10 +17,10 @@ end [status, headers, body] end def json_response?(headers) - headers['Content-Type'] =~ %r{^application/(json|javascript)} + headers['Content-Type'] =~ %r{^application/((vnd\.api\+)?json|javascript)} end end end end end