mirror of
https://github.com/SphericalKat/medium.rip.git
synced 2025-12-18 07:25:58 +00:00
Update medium_client.go
This commit is contained in:
parent
348e4e2527
commit
8b00007fb5
@ -61,6 +61,7 @@ func PostData(postId string) (*entities.MediumResponse, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
req, err := http.NewRequest(method, urlreq, payload)
|
req, err := http.NewRequest(method, urlreq, payload)
|
||||||
|
req.Header.Set("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("Error constructing request %v\n", err)
|
log.Printf("Error constructing request %v\n", err)
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user