It was a long time ago but I think it was
The Headless Horseman by Mayne Reid