Skip to content

Commit

Permalink
Fix purposeful invalid UTF-8 test when running in NodeJS v0.10.42+.
Browse files Browse the repository at this point in the history
  • Loading branch information
GUI committed Jun 5, 2016
1 parent e4a513d commit 2a329ad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ machine:
# don't conflict with our embedded ruby installation.
- rvm reset
node:
version: 0.10.40
version: 0.10.45
dependencies:
cache_directories:
- build/work
Expand Down
8 changes: 7 additions & 1 deletion test/integration/logging.js
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,13 @@ describe('logging', function() {
var expectedRawBinary = new Buffer('77+9', 'base64').toString();

var args = 'url_encoded=' + urlEncoded + '&base64ed=' + base64ed + '&raw=' + raw;
request({

// Use curl and not request for this test, since node's HTTP parser
// prevents invalid utf8 characters from being used in headers as of NodeJS
// v0.10.42. But we still want to test this, since other clients can still
// pass invalid utf8 characters.
var curl = new Curler();
curl.request({
method: 'GET',
url: 'http://localhost:9080/info/' + urlEncoded + '/' + base64ed + '/' + raw + '/?api_key=' + this.apiKey + '&unique_query_id=' + this.uniqueQueryId + '&' + args,
headers: {
Expand Down

0 comments on commit 2a329ad

Please sign in to comment.