Skip to content

Commit

Permalink
fix(api): handle Meridian properly in useJson
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Reed committed Aug 2, 2017
1 parent dd68bdf commit 740cdf1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/api/ServerMetadata.ts
Expand Up @@ -53,7 +53,11 @@ export class ServerMetadata {


/** Is it safe to use JSON for most operations? */ /** Is it safe to use JSON for most operations? */
public useJson() { public useJson() {
return this.version.ge('19.0.0'); if (this.type && this.type === ServerTypes.MERIDIAN) {
return this.version.ge('2017.0.0');
} else {
return this.version.ge('19.0.0');
}
} }


/** What version of the ReST API does this server support? */ /** What version of the ReST API does this server support? */
Expand Down

0 comments on commit 740cdf1

Please sign in to comment.