File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -439,8 +439,9 @@ function Bugster() {
439439
440440 isRequestInProgress = true ;
441441 const xhr = new XMLHttpRequest ( ) ;
442- xhr . open ( "POST" , "https://bugster2.elmah.io/api/BugsterFunction?code=BjsS-o0CJlpZBunhCFSZ_OqWhlEi9sG7G1cyRlyCOYi3AzFuvoyPPA%3D%3D" , true ) ;
443- xhr . setRequestHeader ( "Content-Type" , "text/plain" ) ;
442+ xhr . open ( "POST" , "https://bugster3.elmah.io/api/docs/ask" , true ) ;
443+ xhr . setRequestHeader ( "Content-Type" , "application/json" ) ;
444+ xhr . setRequestHeader ( "Accept" , "text/plain" ) ;
444445
445446 xhr . onprogress = function ( progressEvent ) {
446447 const { target } = progressEvent ;
@@ -476,7 +477,11 @@ function Bugster() {
476477 }
477478 } ;
478479
479- xhr . send ( question . value ) ;
480+ const payload = JSON . stringify ( {
481+ question : question . value ,
482+ sessionId : "local"
483+ } ) ;
484+ xhr . send ( payload ) ;
480485 }
481486
482487 // Ask another question
You can’t perform that action at this time.
0 commit comments