Commit 6d9b1ef
committed
Spoof user agent when downloading GIAS data
Without this the script seems to fail with a forbidden HTTP status code.
```
/usr/local/bundle/ruby/3.4.0/gems/mechanize-2.14.0/lib/mechanize/http/agent.rb:340:in 'Mechanize::HTTP::Agent#fetch': 403 => Net::HTTPForbidden for https://get-information-schools.service.gov.uk/Downloads -- unhandled response (Mechanize::ResponseCodeError)
```1 parent c6abeb5 commit 6d9b1ef
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
0 commit comments