com pftt2: hack for ob_018 accept-encoding issue: src/com/mostc/pftt/runner/HttpPhptTestCaseRunner.java

From: Date: Wed, 17 Jul 2013 20:00:06 +0000
Subject: com pftt2: hack for ob_018 accept-encoding issue: src/com/mostc/pftt/runner/HttpPhptTestCaseRunner.java
Groups: php.qa 
Request: Send a blank email to php-qa+get-67127@lists.php.net to get a copy of this message
Commit: 404a99bd048f186df823fcd5f519cf51d1aa5f6a Author: Matt Ficken <v-mafick@microsoft.com> Wed, 17 Jul 2013 13:00:06 -0700 Parents: e5dc373c81c823988df92042e5121b1be613d4d6 Branches: master Link: http://git.php.net/?p=pftt2.git;a=commitdiff;h=404a99bd048f186df823fcd5f519cf51d1aa5f6a Log: hack for ob_018 accept-encoding issue Changed paths: M src/com/mostc/pftt/runner/HttpPhptTestCaseRunner.java Diff: diff --git a/src/com/mostc/pftt/runner/HttpPhptTestCaseRunner.java b/src/com/mostc/pftt/runner/HttpPhptTestCaseRunner.java index 4b0eba2..8cf92bf 100644 --- a/src/com/mostc/pftt/runner/HttpPhptTestCaseRunner.java +++ b/src/com/mostc/pftt/runner/HttpPhptTestCaseRunner.java @@ -386,7 +386,11 @@ public class HttpPhptTestCaseRunner extends AbstractPhptTestCaseRunner2 { request.setHeader("Cookie", cookie_str); // CRITICAL: tell web server to return plain-text (not HTMl) // for some reason(w/o this), apache returns HTML formatted responses for tests like ext/standard/tests/array/rsort.phpt - request.setHeader("Accept", "text/plain"); + if (path.equals("/tests/output/ob_018.php")) + // TODO temp - need to send this header + request.setHeader("Accept-Encoding", "gzip,deflate "); + else + request.setHeader("Accept", "text/plain"); request.setParams(params); httpexecutor.preProcess(request, httpproc, context);

« previous php.qa (#67127) next »