Created
October 31, 2011 02:56
-
-
Save eungju/1326802 to your computer and use it in GitHub Desktop.
A patch for the binary response body decoding problem
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/basis/http/client/client.factor b/basis/http/client/client.factor | |
| index 7f99c62..8d1b996 100644 | |
| --- a/basis/http/client/client.factor | |
| +++ b/basis/http/client/client.factor | |
| @@ -162,7 +162,8 @@ ERROR: download-failed response ; | |
| : http-request ( request -- response data ) | |
| [ [ % ] with-http-request ] B{ } make | |
| - over content-encoding>> decode check-response-with-body ; | |
| + over content-encoding>> dup binary = [ drop ] [ decode ] if | |
| + check-response-with-body ; | |
| : <get-request> ( url -- request ) | |
| "GET" <client-request> ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment