fix bug of not adding Content-Type header in test server