Skip to content

specifying Accept-Encoding breaks content decoding #20

Description

@rmallah

Hi ,

If one of the tests is modified as below it
fails.

diff --git a/tests/tst_duperagent.qml b/tests/tst_duperagent.qml
index 38f2eff..8da30be 100644
--- a/tests/tst_duperagent.qml
+++ b/tests/tst_duperagent.qml
@@ -135,6 +135,7 @@ TestCase {
     function test_gzip() {
         Http.Request
             .get("http://httpbin.org/gzip")
+           .set('Accept-Encoding', 'gzip, deflate')
             .end(function(err, res){
                 verify(!err, err);
                 compare(res.status, 200);


============================================
function test_gzip() {
        Http.Request
            .get("http://httpbin.org/gzip")
            .set('Accept-Encoding', 'gzip, deflate')
            .end(function(err, res){
                verify(!err, err);
                compare(res.status, 200);
                compare(res.body.gzipped, true);
                done();
            });

        async.wait(timeout);
    }
===========================================

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions