Repository: thrift Updated Branches: refs/heads/master 426ab8680 -> 624781c1c
THRIFT-3024 User-Agent "BattleNet" used in some Thrift library files Client: AS3, Haxe Patch: Jens Geyer This closes #390 Project: http://git-wip-us.apache.org/repos/asf/thrift/repo Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/8cc78c10 Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/8cc78c10 Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/8cc78c10 Branch: refs/heads/master Commit: 8cc78c101a86e9d200a09996e75f3cabec18bad4 Parents: 426ab86 Author: Jens Geyer <[email protected]> Authored: Thu Mar 5 23:59:05 2015 +0100 Committer: Jens Geyer <[email protected]> Committed: Fri Mar 6 01:26:13 2015 +0100 ---------------------------------------------------------------------- .../src/org/apache/thrift/transport/TFullDuplexHttpClient.as | 2 +- .../src/org/apache/thrift/transport/TFullDuplexHttpClient.hx | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/thrift/blob/8cc78c10/lib/as3/src/org/apache/thrift/transport/TFullDuplexHttpClient.as ---------------------------------------------------------------------- diff --git a/lib/as3/src/org/apache/thrift/transport/TFullDuplexHttpClient.as b/lib/as3/src/org/apache/thrift/transport/TFullDuplexHttpClient.as index 3374986..863c59b 100644 --- a/lib/as3/src/org/apache/thrift/transport/TFullDuplexHttpClient.as +++ b/lib/as3/src/org/apache/thrift/transport/TFullDuplexHttpClient.as @@ -195,7 +195,7 @@ package org.apache.thrift.transport { this.output = this.socket; this.input = this.socket; - this.output.writeUTF("CONNECT " + resource + " HTTP/1.1\n" + "Host: " + host + ":" + port + "\r\n" + "User-Agent: BattleNet\r\n" + "Transfer-Encoding: chunked\r\n" + "content-type: application/x-thrift\r\n" + "Accept: */*\r\n\r\n"); + this.output.writeUTF("CONNECT " + resource + " HTTP/1.1\n" + "Host: " + host + ":" + port + "\r\n" + "User-Agent: Thrift/AS3\r\n" + "Transfer-Encoding: chunked\r\n" + "content-type: application/x-thrift\r\n" + "Accept: */*\r\n\r\n"); this.eventDispatcher.dispatchEvent(event); } http://git-wip-us.apache.org/repos/asf/thrift/blob/8cc78c10/lib/haxe/src/org/apache/thrift/transport/TFullDuplexHttpClient.hx ---------------------------------------------------------------------- diff --git a/lib/haxe/src/org/apache/thrift/transport/TFullDuplexHttpClient.hx b/lib/haxe/src/org/apache/thrift/transport/TFullDuplexHttpClient.hx index 3cd2e51..a4dc671 100644 --- a/lib/haxe/src/org/apache/thrift/transport/TFullDuplexHttpClient.hx +++ b/lib/haxe/src/org/apache/thrift/transport/TFullDuplexHttpClient.hx @@ -192,7 +192,13 @@ import flash.events.EventDispatcher; { this.output = this.socket; this.input = this.socket; - this.output.writeUTF("CONNECT " + resource + " HTTP/1.1\n" + "Host : " + host + ":" + port + "\r\n" + "User-Agent : BattleNet\r\n" + "Transfer-Encoding : chunked\r\n" + "content-type : application/x-thrift\r\n" + "Accept : */*\r\n\r\n"); + this.output.writeUTF( "CONNECT " + resource + " HTTP/1.1\n" + + "Host : " + host + ":" + port + "\r\n" + + "User-Agent : Thrift/Haxe\r\n" + + "Transfer-Encoding : chunked\r\n" + + "content-type : application/x-thrift\r\n" + + "Accept : */*\r\n" + + "\r\n"); this.eventDispatcher.dispatchEvent(event); }
