Permalink
Browse files

try to make post test pass on travis

  • Loading branch information...
1 parent 012ae51 commit a3f3a7d7ca6406622937dfc6975357b351189fbc @fgnass committed Sep 17, 2012
Showing with 3 additions and 5 deletions.
  1. +0 −1 test/cgi.sh
  2. +1 −2 test/htdocs/post.php
  3. +1 −1 test/htdocs/post.sh
  4. +1 −1 test/index.js
View
1 test/cgi.sh
@@ -1,2 +1 @@
. $SCRIPT_FILENAME
-
View
3 test/htdocs/post.php
@@ -1,3 +1,2 @@
<?php
-echo 'foo=' . (isset($_POST['foo']) ? $_POST['foo'] : '');
-
+echo 'foo=' . (isset($_POST['foo']) ? $_POST['foo'] : '') . "\n";
View
2 test/htdocs/post.sh
@@ -1,3 +1,3 @@
echo "Content-Type: text/plain"
echo
-cat < /dev/stdin
+read x; echo $x;
View
2 test/index.js
@@ -76,7 +76,7 @@ function test(ext) {
.type('form')
.send({foo: 'Hello'})
.expect(200)
- .expect('foo=Hello')
+ .expect('foo=Hello\n')
.end(done)
})
it('should send a redirect for directories w/o a slash', function(done) {

0 comments on commit a3f3a7d

Please sign in to comment.