Skip to content

Commit

Permalink
add accept header, enable https in make run
Browse files Browse the repository at this point in the history
  • Loading branch information
tsaarni committed Dec 18, 2024
1 parent 3f33fed commit d37a9ff
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ generate-test-certs:
go run github.com/tsaarni/certyaml/cmd/[email protected] -d testdata/certs testdata/certs.yaml

run: generate-test-certs
go run . -live
go run . -live -tls-cert-file testdata/certs/echoserver.pem -tls-key-file testdata/certs/echoserver-key.pem
1 change: 1 addition & 0 deletions apps/fetch.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ <h3>Logs</h3>
method: method,
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json',
},
body: body,
});
Expand Down
1 change: 1 addition & 0 deletions apps/keycloak.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ <h3>Logs</h3>
method: method,
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json',
Authorization: keycloak.token ? `Bearer ${keycloak.token}` : '',
},
body: method === 'GET' ? undefined : JSON.stringify(body),
Expand Down
1 change: 1 addition & 0 deletions apps/oauth.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ <h3>Logs</h3>
method: method,
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json',
Authorization: oauthClient.accessToken ? `Bearer ${oauthClient.accessToken}` : '',
},
body: method === 'GET' ? undefined : JSON.stringify(body),
Expand Down

0 comments on commit d37a9ff

Please sign in to comment.