Skip to content

Commit 59ba55a

Browse files
committed
tweak comments
1 parent c628558 commit 59ba55a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/adapter-netlify/src/serverless.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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}

packages/kit/src/runtime/server/endpoint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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}

0 commit comments

Comments
 (0)