Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set User-Agent: header field in HTTP request for curl downloads
Some servers (for example wikimedia.org) don't allow downloads with the default user agent of libcurl and send HTTP status 403, so OCR for images on such servers fails. Setting the user agent to "Tesseract OCR" allows OCR for images on those servers. Signed-off-by: Stefan Weil <[email protected]>
- Loading branch information