We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 899180c commit ae57e5fCopy full SHA for ae57e5f
1 file changed
src/GitHub/Request.hs
@@ -331,7 +331,9 @@ parseStatus m (Status sci _) =
331
-- Unit
332
-------------------------------------------------------------------------------
333
334
-instance Accept 'MtUnit
+instance Accept 'MtUnit where
335
+ modifyRequest = Tagged setRequestIgnoreStatus
336
+
337
instance a ~ () => ParseResponse 'MtUnit a where
338
parseResponse _ _ = Tagged (return ())
339
@@ -378,7 +380,7 @@ makeHttpRequest auth r = case r of
378
380
$ req
379
381
where
382
parseUrl' :: MonadThrow m => Text -> m HTTP.Request
- parseUrl' = HTTP.parseRequest . T.unpack
383
+ parseUrl' = HTTP.parseUrlThrow . T.unpack
384
385
url :: Paths -> Text
386
url paths = maybe "https://api.github.com" id (endpoint =<< auth) <> "/" <> T.intercalate "/" paths
0 commit comments