fix HttpRequestWriter