[
https://issues.apache.org/jira/browse/NUTCH-2123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Work on NUTCH-2123 started by Chris A. Mattmann.
------------------------------------------------
> 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
> Assignee: Chris A. Mattmann
> Priority: Minor
> Labels: memex
> Fix For: 1.11
>
> Attachments: NUTCH-2123.patch
>
>
> 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)