[ckan-dev] File upload via API and ckanclient

Hendrik Bunke bunke.hendrik at gmail.com
Wed Apr 3 13:26:29 UTC 2013


--On 2013-04-01 22:24, Sean Hammond wrote:
> > Well, I was right with my assumption that _post_multipart in
> > ckanclient is responsible (and I should have looked there in the
> > first place). It turned out that it's missing the
> > authentification headers. Putting them there like so:
> > 
> >     h.putheader('Authorization', self.api_key)
> >     h.putheader('X-CKAN-API-Key', self.api_key)
> 
> Could you submit a pull request with this fix to ckanclient?

OK, I'll try within the next days.

regards
hendrik

-- 
Dr. Hendrik Bunke
http://gplus.to/hbunke
http://twitter.com/hbunke
http://www.hbxt.org




More information about the ckan-dev mailing list