aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2023-04-30 19:12:53 +0200
committerChristopher Baines <mail@cbaines.net>2023-04-30 19:12:53 +0200
commit86df0679612d2b85350ce8def48e319579f7f845 (patch)
treec2e70f9388d0687a5e529b4b41ade463293d5680
parenteb6aec6f07eec089c56ac345f513da4ed3c115a0 (diff)
downloadbffe-86df0679612d2b85350ce8def48e319579f7f845.tar
bffe-86df0679612d2b85350ce8def48e319579f7f845.tar.gz
Add .json suffixes to the agent and build requests
So that we get back JSON rather than HTML when talking to another bffe instance.
-rw-r--r--bffe/server.scm6
1 files changed, 2 insertions, 4 deletions
diff --git a/bffe/server.scm b/bffe/server.scm
index 4c24559..2488fef 100644
--- a/bffe/server.scm
+++ b/bffe/server.scm
@@ -438,9 +438,7 @@
body
(http-get
(string->uri
- (string-append event-source "/build/" uuid
- ;; ".json"
- )))))
+ (string-append event-source "/build/" uuid ".json")))))
(case (most-appropriate-mime-type
'(application/json text/html)
mime-types)
@@ -458,7 +456,7 @@
body
(http-get
(string->uri
- (string-append event-source "/agent/" agent-id)))))
+ (string-append event-source "/agent/" agent-id ".json")))))
(case (most-appropriate-mime-type
'(application/json text/html)
mime-types)