Re: [whatwg/fetch] Treat resources requested via FTP as binary data. (#839)

mikewest commented on this pull request.



>   <dt>"<code>ftp</code>"
  <dd>
-  <p>For now, unfortunate as it is, <code>file</code> and <code>ftp</code> <a for=/>URLs</a> are
-  left as an exercise for the reader.
+  <p>For now, unfortunate as it is, <code>ftp</code> <a for=/>URLs</a> are mostly left as an
+  exercise for the reader.
+
+  <ol>
+   <li>Let <var>body</var> be the result of the user agent obtaining content from
+   <var>request</var>'s <a for=request>current URL</a> from the network via FTP [[!RFC959]].
+
+   <li>Let </var>mime</var> be "<code>application/octet-stream</code>".
+
+   <li>If <var>body</var> is the result of the user agent generating a directory listing page for
+   the result of FTP's LIST command, then set |mime| to "<code>text/ftp-dir</code>".

Done!

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/839#discussion_r237776915

Received on Friday, 30 November 2018 08:22:11 UTC