fixed 500 for HEAD method
Merge branch 'dev'

* dev:
  fixed 500 for HEAD method