title: Content-Type must be 'application/json-patch+json' JsonServiceClient ServiceStack
body: <p>I'm trying to perform a patch with a JsonServiceClient to a service stack api as follows:</p>
  
  <pre><code>var patchRequest = new JsonPatchRequest
  {
      new JsonPatchElement
      {
          op = "replace",
          path = "/firstName",
          value = "Test"
      }
  };
  _jsonClient.Patch&lt;object&gt;($"/testurl/{id}", patchRequest);
  </code></pre>
  
  <p>But I'm getting the following error:</p>
  
  <blockquote>
    <p>Content-Type must be 'application/json-patch+json'</p>
  </blockquote>
  
  <p>The error is clear. Is there a way to change the content type before perform the request for the JsonServiceClient?</p>
  
  <p>This is the request POCO in the ServiceStack api:</p>
  
  <pre><code>[Api("Partial update .")]
  [Route("/testurl/{Id}”, "PATCH")]
  public class PartialTest : IReturn&lt;PartialTestRequestResponse&gt;, IJsonPatchDocumentRequest,
      IRequiresRequestStream
  {
      [ApiMember(Name = “Id”, ParameterType = "path", DataType = "string", IsRequired = true)]
      public string Id { get; set; }
  
      public Stream RequestStream { get; set; }
  }
  
  public class PartialTestRequestResponse : IHasResponseStatus
  {
      public ResponseStatus ResponseStatus { get; set; }
  }
  </code></pre>
  
  <p>Service implementation:</p>
  
  <pre><code>public object Patch(PartialTest request)
      {
          var dbTestRecord = Repo.GetDbTestRecord(request.Id);
  
          if (dbTestRecord == null) throw HttpError.NotFound("Record not found.");
  
          var patch =
            (JsonPatchDocument&lt;TestRecordPoco&gt;)
                JsonConvert.DeserializeObject(Request.GetRawBody(), typeof(JsonPatchDocument&lt;TestRecordPoco&gt;));
  
          if (patch == null)
              throw new HttpError(HttpStatusCode.BadRequest, "Body is not a valid JSON Patch Document.");
  
          patch.ApplyTo(dbTestRecord);
          Repo.UpdateDbTestRecord(dbTestRecord);
          return new PartialTestResponse();
      }
  </code></pre>
  
  <p>I'm using Marvin.JsonPatch V 1.0.0 library.</p>