Skip to content

Commit

Permalink
Bugfix: uncopied but freed raw tag mediatype
Browse files Browse the repository at this point in the history
  • Loading branch information
tdewolff committed Jan 12, 2016
1 parent c7ed5d3 commit c4a53ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html/html.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ func (o *Minifier) Minify(m *minify.M, w io.Writer, r io.Reader, _ map[string]st
}
}
if rawTagHash != 0 && attr.Hash == html.Type {
rawTagMediatype = val
rawTagMediatype = parse.Copy(val)
}

// default attribute values can be ommited
Expand Down

0 comments on commit c4a53ff

Please sign in to comment.