[w3c/manifest] It is not stated how to decode the bytes obtained (#565)

https://www.w3.org/TR/appmanifest/#obtaining assumes the body is a string, but it is not. It is a stream of bytes. You need to decode it, preferably using UTF-8 decode.

This is important as people might be assuming that you e.g. respect the Content-Type header or do some sort of sniffing.

For an example of how to do this see https://domenic.github.io/payment-method-manifest/#processing-model

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/manifest/issues/565

Received on Wednesday, 12 April 2017 20:14:35 UTC