fix(#2767): addressing review comments

This commit is contained in:
Anoop M D
2024-08-08 12:21:04 +05:30
parent 33804f4c7b
commit 4710928407
2 changed files with 5 additions and 4 deletions

View File

@@ -33,7 +33,8 @@ const Timeline = ({ request, response }) => {
{request.data ? (
<pre className="line request">
<span className="arrow">{'>'}</span> data <pre>{request.data}</pre>
<span className="arrow">{'>'}</span> data{' '}
<pre className="text-sm flex flex-wrap whitespace-break-spaces">{request.data}</pre>
</pre>
) : null}
</div>

View File

@@ -25,7 +25,7 @@ class BrunoRequest {
* It must be noted that the request data is always a string and is what gets sent over the network
* If the user wants to access the raw data, they can use getBody({raw: true}) method
*/
const isJson = hasJSONContentType(this.req.headers);
const isJson = this.hasJSONContentType(this.req.headers);
if (isJson) {
this.body = this.__safeParseJSON(req.data);
}
@@ -99,7 +99,7 @@ class BrunoRequest {
return this.req.data;
}
const isJson = hasJSONContentType(this.req.headers);
const isJson = this.hasJSONContentType(this.req.headers);
if (isJson) {
return this.__safeParseJSON(this.req.data);
}
@@ -124,7 +124,7 @@ class BrunoRequest {
return;
}
const isJson = hasJSONContentType(this.req.headers);
const isJson = this.hasJSONContentType(this.req.headers);
if (isJson && this.__isObject(data)) {
this.body = data;
this.req.data = this.__safeStringifyJSON(data);