Skip to content

Commit 706cef4

Browse files
committed
start path from /
1 parent 1a1df45 commit 706cef4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • solga-client-ghcjs/src/Solga/Client

solga-client-ghcjs/src/Solga/Client/GHCJS.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ performXHR :: DOM.XMLHttpRequestResponseType -> Request -> IO (Either XHRError (
180180
performXHR respType Request{..} = do
181181
let xhr = reqXHR
182182
DOM.setResponseType xhr respType
183-
uri <- js_encodeURI (reqHost <> JSS.intercalate "/" (DList.toList reqSegments) <> reqQueryString)
183+
uri <- js_encodeURI ("/" <> reqHost <> JSS.intercalate "/" (DList.toList reqSegments) <> reqQueryString)
184184
DOM.open xhr reqMethod uri True reqUser reqPassword
185185
for_ reqHeaders (uncurry (DOM.setRequestHeader xhr))
186186
r <- case reqBody of

0 commit comments

Comments
 (0)