fix issue #247 as suggested by roland
fix issue #247 as suggested by roland

liggitt/go-restful,mtojek/go-restful,vinayakhulawale/go-restful,liggitt/go-restful,clsung/go-restful,emicklei/go-restful,brendandburns/go-restful,mtojek/go-restful,tabuyashir/go-restful,emicklei/go-restful,vinayakhulawale/go-restful,tabuyashir/go-restful,clsung/go-restful,brendandburns/go-restful