Server-side fixes for HTTP tunnel