a simple RESTFul server
add content-length