Reports wrong content-type for "plain-CWL" type, missing character encoding
See original GitHub issueHTTP/1.1 200 OK
Date: Tue, 16 Aug 2016 22:27:06 GMT
Content-Type: application/json
Vary: Accept-Encoding
Content-Length: 1810
The content type should probably be text/plain. Application/json is definitely wrong. Unfortunately, there doesn’t appear to be standard mime type for YAML, there are a few different conventions in use (https://stackoverflow.com/questions/332129/yaml-mime-type).
Per the CWL spec, CWL files should be encoded UTF-8. The headers should explicitly supply this as the character encoding.
This is a blocker issue, using the Python requests library to fetch the above link gets decoded using the wrong character set, which has the effect of causing the YAML parser to fail.
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Reports wrong content-type for "plain-CWL" type, missing ...
Per the CWL spec, CWL files should be encoded UTF-8. The headers should explicitly supply this as the character encoding. This is a...
Read more >What does "Content-type: application/json; charset=utf-8 ...
Content-type : application/json; charset=utf-8 designates the content to be in JSON format, encoded in the UTF-8 character encoding. Designating the encoding ...
Read more >Declaring character encodings in HTML - W3C
Use character encoding declarations in HTTP headers if it makes sense, and if you are able, for any type of content, but in...
Read more >Solved: Create a .csv file that uses UTF-8 character encod...
Solved: Hello, as the title of the subject already suggests: I want to create a .csv file that uses UTF-8 character encoding. The...
Read more >Email Encoding: Setting Content-Type and HTML Spcecial ...
Content-Type plays a major role in the way an email is displayed. Learn about Content-Type character encoding and how to use it in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So, when the client provides
Accept: */*
(which is the default for both requests and curl and probably many other http client libraries), dockstore returnsapplication/json
as the content-type forplain-CWL
(which seems wrong) and no character set. I am proposing that the content-type returned forAccept: */*
andplain-CWL
should be:Verified behaviour on staging