Permalink
Browse files

fix(api): handle Meridian properly in useJson

  • Loading branch information...
RangerRick committed Aug 2, 2017
1 parent dd68bdf commit 740cdf1ea78149c6e668938bbb75010c582e6b39
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/api/ServerMetadata.ts
@@ -53,7 +53,11 @@ export class ServerMetadata {
/** Is it safe to use JSON for most operations? */
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? */

0 comments on commit 740cdf1

Please sign in to comment.