com pftt2: hack for ob_018 accept-encoding issue: src/com/mostc/pftt/runner/HttpPhptTestCaseRunner.java
| From: | Anatol Belski | 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-68366@lists.php.net to get a copy of this message | ||
Commit: 96e39502ffece916a551de1043d735b99c878e19
Author: Matt Ficken <v-mafick@microsoft.com> Wed, 17 Jul 2013 13:00:06 -0700
Parents: c02469377c1c67d8ec84e5383b2a34b34f85c81c
Branches: master
Link: http://git.php.net/?p=pftt2.git;a=commitdiff;h=96e39502ffece916a551de1043d735b99c878e19
Log:
hack for ob_018 accept-encoding issue
Former-commit-id: 404a99bd048f186df823fcd5f519cf51d1aa5f6a
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);