Show
Ignore:
Timestamp:
07/03/08 22:16:07 (5 months ago)
Author:
thijs
Message:

Fix issue #317: Server name in HTTP response.

Patch by: thijs
Review by: nick

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pyamf/trunk/pyamf/remoting/gateway/django.py

    r1441 r1474  
    8787            request = remoting.decode(http_request.raw_post_data, context) 
    8888        except pyamf.DecodeError: 
    89             self.logger.error(gateway.format_exception()) 
     89            self.logger.exception(gateway.format_exception()) 
    9090            http_response.status_code = 400 
    9191 
     
    100100            raise 
    101101        except: 
    102             self.logger.error(gateway.format_exception()) 
     102            self.logger.exception(gateway.format_exception()) 
    103103 
    104104            return http.HttpResponseServerError() 
     
    110110            stream = remoting.encode(response, context) 
    111111        except pyamf.EncodeError: 
    112             self.logger.error(gateway.format_exception()) 
     112            self.logger.exception(gateway.format_exception()) 
    113113 
    114114            return http.HttpResponseServerError('Unable to encode the response') 
     
    117117        http_response['Content-Type'] = remoting.CONTENT_TYPE 
    118118        http_response['Content-Length'] = str(len(buf)) 
     119        http_response['Server'] = gateway.SERVER_NAME 
    119120        http_response.write(buf) 
    120121