Show
Ignore:
Timestamp:
07/03/08 22:06:27 (6 months ago)
Author:
thijs
Message:

Fix issue #306: User-Agent missing in AMF client.

Patch by: thijs
Review by: nick

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pyamf/trunk/pyamf/tests/remoting/test_client.py

    r1432 r1473  
    55 
    66""" 
    7 Test for Remoting client. 
     7Tests for Remoting client. 
    88 
    99@since: 0.1.0 
     
    371371 
    372372        dc.tc = self 
    373         dc.expected_headers = {'Content-Type': 'application/x-amf'} 
     373        dc.expected_headers = {'Content-Type': remoting.CONTENT_TYPE, 
     374                               'User-Agent': client.DEFAULT_USER_AGENT} 
    374375 
    375376        service = gw.getService('baz', auto_execute=False) 
     
    409410 
    410411        dc.tc = self 
    411         dc.expected_headers = {'Content-Type': 'application/x-amf'} 
     412        dc.expected_headers = {'Content-Type': 'application/x-amf', 
     413                               'User-Agent': client.DEFAULT_USER_AGENT} 
    412414 
    413415        baz = gw.getService('baz', auto_execute=False)