mirror of
https://github.com/usebruno/bruno.git
synced 2025-01-11 00:18:46 +01:00
fix: fixed postman import url issue
This commit is contained in:
parent
4c18c27406
commit
a59ae75809
@ -36,12 +36,19 @@ const importPostmanV2CollectionItem = (brunoParent, item) => {
|
||||
}
|
||||
} else {
|
||||
if(i.request) {
|
||||
let url = '';
|
||||
if(typeof i.request.url === 'string') {
|
||||
url = i.request.url;
|
||||
} else {
|
||||
url = get(i, 'request.url.raw') || '';
|
||||
}
|
||||
|
||||
const brunoRequestItem = {
|
||||
uid: uuid(),
|
||||
name: i.name,
|
||||
type: 'http-request',
|
||||
request: {
|
||||
url: get(i, 'request.url.raw'),
|
||||
url: url,
|
||||
method: i.request.method,
|
||||
headers: [],
|
||||
params: [],
|
||||
|
Loading…
Reference in New Issue
Block a user