Changes between Version 47 and Version 48 of XML-RPC


Ignore:
Timestamp:
Jan 25, 2010, 4:30:54 PM (15 years ago)
Author:
mandel
Comment:

An error will happen in the mimetype is not set correctly when working with some js libs. I've changed the code to make sure that people get it right.

Legend:

Unmodified
Added
Removed
Modified
  • XML-RPC

    v47 v48  
    3232        """
    3333
    34         response = HttpResponse()
    3534        if len(request.POST):
     35                response = HttpResponse(mimetype="application/xml")
    3636                response.write(dispatcher._marshaled_dispatch(request.raw_post_data))
    3737        else:
     38                response = HttpResponse()
    3839                response.write("<b>This is an XML-RPC Service.</b><br>")
    3940                response.write("You need to invoke it using an XML-RPC Client!<br>")
Back to Top