FLEXTool / FLEXTool/FLEX

Add Line Breaks to Copy Curl command to increase readability

Open
#666 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Objective-C
Stars
14.6k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

### Environment
- Platform+version: **iOS 16.3.1**
- FLEX version: **5.22.10**

### Bug Report

Usually we have to copy cURL requests into JIRA. When copying cURL requests from Network History in Flex Debugger, always text contains no line breaks. With formatting means of JIRA (e.g. tag {code:java} or {noformat}), the pasted content is always on one line and not quite readable.
Please add Line Breaks (LF or CR) to below text before every "-H" so that content is on more lines and thus better readable and visible and not only beginning of it.

```
curl -v -X GET '/path/to/endpoint' -H 'X-App-Id: someAppId' -H 'X-Application-OS: iOS' -H 'X-Application-Platform: IOS;1170x2532;biometrics=FACE_ID;scale=3.0;ppi=460' -H 'Accept: application/json' -H 'Authorization: Bearer 3d7e4aad-f196-473e-a71f-d63a47c37e48' -H 'X-Application-Type: someAppType' -H 'X-ApplicationInstallation-ID: install-id' -H 'Accept-Language: en-GB' -H 'X-Application-App-Version: 3.4.5' -H 'X-Application-Device: iPhone 13' -H 'Platform: IOS;1170x2532;biometrics=FACE_ID;scale=3.0;ppi=460' -H 'X-Request-ID: request-id' -H 'X-Application-OS-Version: 16.3.1' -H 'Session-Id: session-id' -H 'User-Agent: App/Version (app-identifier build:2023-03-21T1459-32822; iOS 16.3.1) Alamofire/5.6.4' -H 'Accept-Encoding: br;q=1.0, gzip;q=0.9, deflate;q=0.8' -H 'Cookie: 4G0qy9fDDI=wzQX0EMhWMIIuYJ3f7HFZeAhlpDkWJzb; NHIJACZdcO=jgGJcVfp4B8o1bArrhEGj64LkTMFJ0y8' -H 'Cookie: 4G0qy9fDDI=wzQX0EMhWMIIuYJ3f7HFZeAhlpDkWJzb; NHIJACZdcO=jgGJcVfp4B8o1bArrhEGj64LkTMFJ0y8;'
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.