We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f13b79 commit b1d7082Copy full SHA for b1d7082
1 file changed
healthcare/fhir/searchFhirResourcesPost.js
@@ -28,8 +28,6 @@ const main = (
28
const searchFhirResourcesPost = async () => {
29
const auth = new GoogleAuth({
30
scopes: 'https://www.googleapis.com/auth/cloud-platform',
31
- // Set application/fhir+json header because this is a POST request.
32
- headers: {'Content-Type': 'application/fhir+json'},
33
});
34
// TODO(developer): uncomment these lines before running the sample
35
// const cloudRegion = 'us-central1';
@@ -50,6 +48,9 @@ const main = (
50
48
const response = await client.request({
51
49
url,
52
method: 'POST',
+ headers: {
+ 'Content-Type': 'application/fhir+json',
53
+ },
54
params,
55
responseType: 'json',
56
0 commit comments