carolinux / gdata-python-client

Automatically exported from code.google.com/p/gdata-python-client
0 stars 1 forks source link

PATCH request generates incorrect Content-Type #437

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is a copy of issue # 391.

What steps will reproduce the problem?

1. Try to submit a PATCH request to update a video entry.
2. The library generates application/atom+xml as the content type, which is 
incorrect, it should be application/xml for PATCH requests. See 
http://code.google.com/apis/gdata/docs/2.0/reference.html#PartialUpdate
3. I tried overwriting the Content-Type using addiitonal_headers, but the 
library does not seem to allow it.

What is the expected output? What do you see instead?

I'm getting a 415

What version of the product are you using?

2.0.10

Please provide any additional information below.

Original issue reported on code.google.com by jar...@google.com on 20 Aug 2010 at 6:24

GoogleCodeExporter commented 9 years ago
YouTube GData API Thread : 
http://groups.google.com/group/youtube-api-gdata/browse_thread/thread/e708045730
c3710e/03ca2bf8acb9d9e6?#03ca2bf8acb9d9e6 

Original comment by jar...@google.com on 20 Aug 2010 at 7:23

GoogleCodeExporter commented 9 years ago
I applied the patch supplied in issue 391:

  http://code.google.com/p/gdata-python-client/source/detail?r=a2188939c9c56a58d9318a27ff7a908f8d5ef259

This should allow you to override the Content-Type. 

Original comment by joe.gregorio@gmail.com on 20 Aug 2010 at 7:41