~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to www/media/common/util.js

  • Committer: mattgiuca
  • Date: 2008-06-23 12:38:52 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:792
util.js: ajax_call: Fixed multipart/form-data post request generation. (Syntax
                    error meant it wouldn't work at all).
editor.js: "Save" now writes a multipart/form-data request, not urlencoded.
    Important for large writes to save bandwidth.

Show diffs side-by-side

added added

removed removed

Lines of Context:
653
653
        if (content_type == "multipart/form-data")
654
654
        {
655
655
            xhr.setRequestHeader("Content-Type",
656
 
                "multipart/form-data, boundary=" + boundary);
 
656
                "multipart/form-data; boundary=" + boundary);
657
657
            message = make_multipart_formdata(args, boundary);
658
658
        }
659
659
        else