mirror of
https://github.com/graphql-hive/console
synced 2026-05-23 09:08:34 +00:00
Use response.text instead of response.body (#1309)
This commit is contained in:
parent
d5410e0649
commit
ca8cf43480
2 changed files with 5 additions and 5 deletions
|
|
@ -272,9 +272,9 @@ export const graphqlHandler = (options: GraphQLHandlerOptions): RouteHandlerMeth
|
|||
}
|
||||
|
||||
void reply.status(response.status);
|
||||
void reply.send(response.body);
|
||||
|
||||
return reply;
|
||||
const textResponse = await response.text();
|
||||
void reply.send(textResponse);
|
||||
},
|
||||
);
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
#!/usr/bin/env node
|
||||
import { Readable } from 'node:stream';
|
||||
import got from 'got';
|
||||
import { GraphQLError, stripIgnoredCharacters } from 'graphql';
|
||||
import 'reflect-metadata';
|
||||
|
|
@ -353,8 +352,9 @@ export async function main() {
|
|||
});
|
||||
|
||||
void reply.status(response.status);
|
||||
void reply.send(Readable.from(response.body!));
|
||||
return reply;
|
||||
|
||||
const textResponse = await response.text();
|
||||
void reply.send(textResponse);
|
||||
},
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue