diff --git a/rpc/client.go b/rpc/client.go index 1c59f5d..c8d322b 100644 --- a/rpc/client.go +++ b/rpc/client.go @@ -26,7 +26,6 @@ import ( func init() { mock.RegisterTransport() http.RegisterTransport() - fasthttp.RegisterTransport() socket.RegisterTransport() udp.RegisterTransport() websocket.RegisterTransport() diff --git a/rpc/rpc_test.go b/rpc/rpc_test.go index fc80365..4e9b336 100644 --- a/rpc/rpc_test.go +++ b/rpc/rpc_test.go @@ -534,11 +534,6 @@ func TestHTTP(t *testing.T) { assert.Equal(t, http.StatusForbidden, resp.StatusCode) resp.Body.Close() assert.NoError(t, err) - fasthttpTransport := rpc.FastHTTPTransport(client) - fasthttpTransport.Header = http.Header{ - "test": []string{"test"}, - "Origin": []string{"hprose.com"}, - } { result, err := client.Invoke("hello", []interface{}{"world"}) assert.Equal(t, "test:hello world", result[0])