Uploaded image for project: 'Olingo'
  1. Olingo
  2. OLINGO-1332

Header Perfer: "return=minimal" or "return=representation" return Error "Prefer Header not supported"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • (Java) V4 4.5.0
    • None
    • odata4-server
    • None
    • Patch

    Description

       

      Hi,

      Considering the following python script  :

      # -*- encoding: utf-8 -*-
      
      import requests
      
      headers = {
          'Content-Type': 'application/json',
          'Prefer': 'return=minimal'
      }
      url = "http://localhost:8080/Customers(2)"
      r = requests.get(url, headers=headers))
      print(r.content)

      If I run it on my olingo implementation, I've got the following content :

      b'{"error":{"code":null,"message":"The Prefer header \'return=minimal\' is not supported for this HTTP Method."}}'

       

       

       

       

       

      Attachments

        1. OLINGO-1332.patch
          1.0 kB
          Jerome BAROTIN

        Activity

          People

            mirbo mibo
            jbarotin Jerome BAROTIN
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: