Skip to content

Commit

Permalink
Merge branch 'usebruno:main' into feature/support-for-generating-Powe…
Browse files Browse the repository at this point in the history
…rShell-code
  • Loading branch information
sanjai0py authored Feb 13, 2024
2 parents 8e6f2a0 + 3c87c1d commit 78dc7e3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 0 additions & 4 deletions contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ You would need [Node v18.x or the latest LTS version](https://nodejs.org/en/) an

Bruno is being developed as a desktop app. You need to load the app by running the Next.js app in one terminal and then run the electron app in another terminal.

### Dependencies

- NodeJS v18

### Local Development

```bash
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const ConfirmRequestClose = ({ item, onCancel, onCloseWithoutSave, onSaveAndClos
disableEscapeKey={true}
disableCloseOnOutsideClick={true}
closeModalFadeTimeout={150}
handleCancel={onCancel}
onClick={(e) => {
e.stopPropagation();
e.preventDefault();
Expand Down
5 changes: 3 additions & 2 deletions packages/bruno-electron/src/ipc/network/prepare-request.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ const parseFormData = (datas, collectionPath) => {
const filePaths = value || [];
filePaths.forEach((filePath) => {
let trimmedFilePath = filePath.trim();

if (!path.isAbsolute(trimmedFilePath)) {
trimmedFilePath = path.join(collectionPath, trimmedFilePath);
}
const file = fs.readFileSync(trimmedFilePath);
form.append(name, file, path.basename(trimmedFilePath));

form.append(name, fs.createReadStream(trimmedFilePath), path.basename(trimmedFilePath));
});
} else {
form.append(name, value);
Expand Down

0 comments on commit 78dc7e3

Please sign in to comment.