Commit 1bb7250
committed
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]>1 parent bcd6144 commit 1bb7250
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1184 | 1184 | | |
1185 | 1185 | | |
1186 | 1186 | | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
1187 | 1191 | | |
1188 | 1192 | | |
1189 | 1193 | | |
| |||
0 commit comments