Aron Ahmadia created NUTCH-2123:
-----------------------------------
Summary: Seed List REST API returns Text but headers
indicate/require JSON
Key: NUTCH-2123
URL: https://issues.apache.org/jira/browse/NUTCH-2123
Project: Nutch
Issue Type: Bug
Components: REST_api
Affects Versions: 1.11
Reporter: Aron Ahmadia
Priority: Minor
Fix For: 1.11
nutch.py: POST Endpoint: /seed/create
nutch.py: POST Request data: {'seedUrls': [{'id': 0, 'url':
'http://aron.ahmadia.net', 'seedList': None}], 'id': '12345', 'name': 'aron'}
nutch.py: POST Request headers: {'Accept': 'application/json'}
nutch.py: Response headers: {'content-type': 'application/json', 'server':
'Jetty(8.1.15.v20140411)', 'content-length': '64', 'date': 'Fri, 25 Sep 2015
05:49:09 GMT'}
nutch.py: Response status: 200
resp.headers
{'content-type': 'application/json', 'server': 'Jetty(8.1.15.v20140411)',
'content-length': '64', 'date': 'Fri, 25 Sep 2015 05:49:09 GMT'}
resp.text
'/var/folders/3s/pw2prx7n7vd22qqrlssmtn900000gp/T/1443160149187-0'
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)