Skip to content

Commit

Permalink
Only use JSON as responseType
Browse files Browse the repository at this point in the history
  • Loading branch information
theotherp committed Mar 23, 2024
1 parent bf43734 commit 2f1479d
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.XmlSeeAlso;
import jakarta.xml.bind.annotation.XmlTransient;
import org.nzbhydra.mapping.IndexerResponseTypeHolder;
import org.nzbhydra.mapping.newznab.NewznabResponse;
import org.nzbhydra.mapping.newznab.xml.caps.CapsXmlRoot;
import org.nzbhydra.mapping.newznab.xml.caps.jackett.JacketCapsXmlRoot;
Expand All @@ -33,15 +32,11 @@
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
@XmlSeeAlso({NewznabXmlError.class, NewznabXmlRoot.class, CapsXmlRoot.class, JacketCapsXmlRoot.class})
public abstract class Xml extends NewznabResponse implements IndexerResponseTypeHolder {
public abstract class Xml extends NewznabResponse {

@XmlTransient
private NewznabResponse.SearchType searchType;

@Override
public ResponseType getType() {
return ResponseType.XML;
}

@Override
public String getContentHeader() {
Expand Down

0 comments on commit 2f1479d

Please sign in to comment.