Skip to content

Commit

Permalink
Merge branch 'master' into cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Robinson committed Apr 8, 2018
2 parents 450b93c + df8855d commit 100083a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions newznab/structs.go
Expand Up @@ -126,7 +126,7 @@ type RawNZB struct {

Source struct {
URL string `xml:"url,attr"`
Value string `xml:"url,chardata"`
Value string `xml:",chardata"`
} `xml:"source,omitempty"`

Date Time `xml:"pubDate,omitempty"`
Expand All @@ -152,7 +152,7 @@ func (t *Time) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
if err := e.EncodeToken(start); err != nil {
return errors.Wrap(err, "failed to encode xml token")
}
if err := e.EncodeToken(xml.CharData([]byte(t.UTC().Format(time.RFC822)))); err != nil {
if err := e.EncodeToken(xml.CharData([]byte(t.UTC().Format(time.RFC1123Z)))); err != nil {
return errors.Wrap(err, "failed to encode xml token")
}
if err := e.EncodeToken(xml.EndElement{Name: start.Name}); err != nil {
Expand Down

0 comments on commit 100083a

Please sign in to comment.