code violation fix in httprestful.go