File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ export function init(manifest) {
2222 ...split_headers ( response . headers )
2323 } ;
2424
25- // TODO this is probably wrong now?
2625 if ( ! is_text ( response . headers . get ( 'content-type' ) ) ) {
2726 // Function responses should be strings (or undefined), and responses with binary
2827 // content should be base64 encoded and set isBase64Encoded to true.
@@ -70,7 +69,7 @@ const text_types = new Set([
7069] ) ;
7170
7271/**
73- * Decides how the body should be parsed based on its mime type. Should match what's in parse_body
72+ * Decides how the body should be parsed based on its mime type
7473 *
7574 * @param {string | undefined | null } content_type The `content-type` header of a request/response.
7675 * @returns {boolean }
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ const text_types = new Set([
2222] ) ;
2323
2424/**
25- * Decides how the body should be parsed based on its mime type. Should match what's in parse_body
25+ * Decides how the body should be parsed based on its mime type
2626 *
2727 * @param {string | undefined | null } content_type The `content-type` header of a request/response.
2828 * @returns {boolean }
You can’t perform that action at this time.
0 commit comments