From 43415dc43345a638f874e876d9bfa416e6125871 Mon Sep 17 00:00:00 2001 From: sinkuu Date: Sun, 24 Aug 2014 19:33:24 +0900 Subject: [PATCH] Allow "identity" conent-encoding in HTTP client --- source/vibe/http/client.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/vibe/http/client.d b/source/vibe/http/client.d index 1665fdcd59..53fed1dfc0 100644 --- a/source/vibe/http/client.d +++ b/source/vibe/http/client.d @@ -748,7 +748,7 @@ final class HTTPClientResponse : HTTPResponse { m_gzipInputStream = FreeListRef!GzipInputStream(m_bodyReader); m_bodyReader = m_gzipInputStream; } - else enforce(false, "Unsuported content encoding: "~*pce); + else enforce(*pce == "identity", "Unsuported content encoding: "~*pce); } // be sure to free resouces as soon as the response has been read