fixes callback for GET/HEAD/DELETE/OPTIONS methods