Open sumnerevans opened 4 years ago
I started looking into this but am running into issues with the Oauth2 flow, thanks to some issues with requests-oauthlib, as such, this is currently blocked by requests/requests-oauthlib#437, there's been an open PR (requests/requests-oauthlib#438) open for most of this year.
The specific issue is that Sourcehut is categorically rejecting the request due to the extra and erroneous charset information appended to the Content-Type header. As stated in the requests-oauth issue, this is redundant since the Oauth2 spec requires UTF-8 by design.
Once requests-oauthlib is fixed, I'll keep working on this!
This looks like a SourceHut bug as well - redundant though it may be, we should not reject it. I would accept a ticket (or even better, a patch) to correct this behavior.
I would like to be able to import repositories from Sourcehut (https://sr.ht) similar to how import works from Git{Hub,Lab}.