title: Delete request fails with 415 Unsupported Media Type
body: <p>I am working on a React application that uses MobX, and have encountered a problem with implementing the Delete HTTP request. All the other requests work fine.</p>
  
  <p>MobX store action:</p>
  
  <pre><code>        try {
              await agent.Artworks.delete(id);
                  this.artworkRegistry.delete(id);
          } catch (error) {
              console.log(error);
          }
      };
  </code></pre>
  
  <p>Agent methods:
  <code>del: (url: string) =&gt; axios.delete(url).then(responseBody)
  delete: (id: string) =&gt; requests.del(`/artworks/${id}`)
  </code></p>
  
  <p>Command handler:</p>
  
  <pre><code>{
      public class Delete
      {
          public class Command : IRequest
          {
              public Guid Id { get; set; }
          }
          public class Handler : IRequestHandler&lt;Command&gt;
          {
              private readonly DataContext _context;
              public Handler(DataContext context)
              {
                  _context = context;
              }
              public async Task&lt;Unit&gt; Handle(Command request, CancellationToken cancellationToken)
              {
                  var artwork = await _context.Artworks.FindAsync(request.Id);
                  if (artwork == null) 
                      throw new Exception("Could not find artwork");
                  _context.Remove(artwork);    
                  var success = await _context.SaveChangesAsync() &gt; 0;  
                  if (success) return Unit.Value;
                  throw new Exception("Problem saving changes");
              }
          }
      }
  }
  </code></pre>
  
  <p>The console gives me the following error:
  <code>Object { data: {…}, status: 415, statusText: "Unsupported Media Type", headers: {…}, config: {…}, request: XMLHttpRequest }</code></p>
  
  <p>What am I missing?</p>