Skip to content

Commit

Permalink
Merge pull request #789 from sinkuu/content_encoding_identity
Browse files Browse the repository at this point in the history
Trivial: Allow "identity" conent-encoding in HTTP client
  • Loading branch information
s-ludwig committed Aug 24, 2014
2 parents 478ddf0 + 43415dc commit 0d6cd96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/vibe/http/client.d
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0d6cd96

Please sign in to comment.