~john-koepi/ubuntu/trusty/golang/default

« back to all changes in this revision

Viewing changes to src/pkg/mime/multipart/writer.go

  • Committer: Bazaar Package Importer
  • Author(s): Ondřej Surý
  • Date: 2011-08-03 17:04:59 UTC
  • mfrom: (14.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20110803170459-wzd99m3567y80ila
Tags: 1:59-1
* Imported Upstream version 59
* Refresh patches to a new release
* Fix FTBFS on ARM (Closes: #634270)
* Update version.bash to work with Debian packaging and not hg
  repository

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
                }
62
62
        }
63
63
        var b bytes.Buffer
64
 
        fmt.Fprintf(&b, "\r\n--%s\r\n", w.boundary)
 
64
        if w.lastpart != nil {
 
65
                fmt.Fprintf(&b, "\r\n--%s\r\n", w.boundary)
 
66
        } else {
 
67
                fmt.Fprintf(&b, "--%s\r\n", w.boundary)
 
68
        }
65
69
        // TODO(bradfitz): move this to textproto.MimeHeader.Write(w), have it sort
66
70
        // and clean, like http.Header.Write(w) does.
67
71
        for k, vv := range header {