dch Posted February 8, 2014 Report Share Posted February 8, 2014 Request Headers. Note Accept.GET /api?method=get_folders HTTP/1.1Accept: application/jsonAccept-Encoding: gzip, deflate, compressAuthorization: Basic ASDFgfdsghstFDASGFDAGRADContent-Type: application/json; charset=utf-8Host: wintermute:8888User-Agent: HTTPie/0.8.0Response Headers. Note Content-Type.HTTP/1.1 200 OKCache-Control: no-cacheConnection: keep-aliveContent-Length: 654Content-Type: text/javascriptContent-Type should obviously be application/json -- we are not returning arbitrary JavaScript (aka JSONP) here. This should be fixed because: 1. sent content-type should match the requested type within reason2. it's clearly application/json data being returned anyway3. downstream APIs and tools may not handle text/javascript in the same way This specific example taken from FreeBSD 10.0 client. I'd suggest also you may want to consider including the btsync version in the returned headers. This will be useful in future for feature detection and operations. Quote Link to comment Share on other sites More sharing options...
marc321 Posted August 11, 2014 Report Share Posted August 11, 2014 I agree this is very important. Quote Link to comment Share on other sites More sharing options...
RomanZ Posted August 12, 2014 Report Share Posted August 12, 2014 @all, Thanks for bringing this one to our attention. We'll consider fixing it in future releases. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.