Specify Accept header in Fetch requests.

Change-Id: I6634b9c6abc0ad7a688d4d3aa4e16349ad996cff
diff --git a/src/main/resources/META-INF/resources/bookmarks/MlkBookmarkSubmissionForm.js b/src/main/resources/META-INF/resources/bookmarks/MlkBookmarkSubmissionForm.js
index c6249ae..6ecc355 100644
--- a/src/main/resources/META-INF/resources/bookmarks/MlkBookmarkSubmissionForm.js
+++ b/src/main/resources/META-INF/resources/bookmarks/MlkBookmarkSubmissionForm.js
@@ -147,7 +147,7 @@
     let searchParams = new URLSearchParams({'uri': this.uriInput.value});
     console.log(`/bookmarks/page-info?${searchParams.toString()}`);
     let fetchUrl = new URL(`/bookmarks/page-info?${searchParams.toString()}`, document.URL);
-    let r = await fetch(fetchUrl);
+    let r = await fetch(fetchUrl, {headers: {"accept": "application/json"}});
     this.uriSpinner.hidden = true;
     this.uriSpinner.playing = false;
 
@@ -165,7 +165,7 @@
     }
 
     let fetchUrl = new URL(`/posts/${this.editedId}`, document.URL);
-    let r = await fetch(fetchUrl);
+    let r = await fetch(fetchUrl, {headers: {"accept": "application/json"}});
 
     if (!r.ok) {
       return;
diff --git a/src/main/resources/META-INF/resources/lazychat/MlkLazychatSubmissionForm.js b/src/main/resources/META-INF/resources/lazychat/MlkLazychatSubmissionForm.js
index 3dce33d..c6334ad 100644
--- a/src/main/resources/META-INF/resources/lazychat/MlkLazychatSubmissionForm.js
+++ b/src/main/resources/META-INF/resources/lazychat/MlkLazychatSubmissionForm.js
@@ -100,7 +100,7 @@
     }
 
     let fetchUrl = new URL(`/posts/${this.editedId}`, document.URL);
-    let r = await fetch(fetchUrl);
+    let r = await fetch(fetchUrl, {headers: {"accept": "application/json"}});
 
     if (!r.ok) {
       return;