Fixing rest handler on Apache 2.4

--HG--
extra : source : 85662402c8667961858b0729d36e8b39e27a76d4
Merge pull request #349 from einhverfr/master

Fixing rest handler on Apache 2.4