Fixed #1051: Regression: routing callbacks cannot modify options