fix NPE when request lacks “Accept” header
checkstyle
Adding license header
Merge branch 'fix-npe-accept'