title: Why response is always {"detail":"Unsupported media type \"text/plain\" in request."} in swift?
body: <p>I have created a sample app in Django which deletes a question from App. And provides a correct output when consumed using POSTMAN.</p>
  <pre><code>class Questions(APIView):
    def delete(self,request):
          received_id = request.POST[&quot;id&quot;]
          print(received_id)
          place = Question.objects.get(pk=received_id)
          place.delete()
          questions = Question.objects.all()
          seriliazer = QuestionSerializer(questions,many = True)
          return Response({'Orgs': seriliazer.data})
  </code></pre>
  <p>However, when I am trying to achieve it from iOS app, it's returning {&quot;detail&quot;:&quot;Unsupported media type &quot;text/plain&quot; in request.&quot;}</p>
  <pre><code>func deleteQuestion( id: Int){
      guard let url  = URL(string: &quot;http://127.0.0.1:8000/V1/API/questions/&quot;) else {
          return
      }
      var request = URLRequest(url: url)
      let postString = &quot;id=15&quot;
      request.httpBody = postString.data(using: String.Encoding.utf8);
      request.httpMethod = &quot;DELETE&quot;
      URLSession.shared.dataTask(with: request) { data, response, error in
          let str = String(decoding: data!, as: UTF8.self)
          print(str)
          if error == nil {
              self.fetcOrganizatinData()
          }
      }.resume()
  }
  </code></pre>
  <p>Could not really understand where exactly the problem is ?</p>