diff options
author | Jeremy Benoist <j0k3r@users.noreply.github.com> | 2016-03-18 20:55:54 +0100 |
---|---|---|
committer | Jeremy Benoist <j0k3r@users.noreply.github.com> | 2016-03-18 20:55:54 +0100 |
commit | e71c376db9a96e63595c0773828e96235c8d1233 (patch) | |
tree | 0a63a0149d9e51062e81c6017ad7601eceb005df /src | |
parent | bd46de6b25f982e1a0d3f975971fe8014db13833 (diff) | |
download | wallabag-e71c376db9a96e63595c0773828e96235c8d1233.tar.gz wallabag-e71c376db9a96e63595c0773828e96235c8d1233.tar.zst wallabag-e71c376db9a96e63595c0773828e96235c8d1233.zip |
Force user-agent for iansommerville.com
When using the default User Agent, the website returns a 403. By forcing the User Agent for this domain, we got the proper behavior: a 200
Since we can't _append_ new user agent to the default graby configuration, we need to rewrite all the default config + the new one.
Fix #1801
Diffstat (limited to 'src')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/config/services.yml | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/config/services.yml b/src/Wallabag/CoreBundle/Resources/config/services.yml index 677c33da..a36f3392 100644 --- a/src/Wallabag/CoreBundle/Resources/config/services.yml +++ b/src/Wallabag/CoreBundle/Resources/config/services.yml | |||
@@ -39,7 +39,22 @@ services: | |||
39 | wallabag_core.graby: | 39 | wallabag_core.graby: |
40 | class: Graby\Graby | 40 | class: Graby\Graby |
41 | arguments: | 41 | arguments: |
42 | - { error_message: "wallabag can't retrieve contents for this article. Please report this issue to us." } | 42 | - |
43 | error_message: "wallabag can't retrieve contents for this article. Please report this issue to us." | ||
44 | http_client: | ||
45 | user_agents: | ||
46 | 'lifehacker.com': 'PHP/5.2' | ||
47 | 'gawker.com': 'PHP/5.2' | ||
48 | 'deadspin.com': 'PHP/5.2' | ||
49 | 'kotaku.com': 'PHP/5.2' | ||
50 | 'jezebel.com': 'PHP/5.2' | ||
51 | 'io9.com': 'PHP/5.2' | ||
52 | 'jalopnik.com': 'PHP/5.2' | ||
53 | 'gizmodo.com': 'PHP/5.2' | ||
54 | '.wikipedia.org': 'Mozilla/5.2' | ||
55 | '.fok.nl': 'Googlebot/2.1' | ||
56 | 'getpocket.com': 'PHP/5.2' | ||
57 | 'iansommerville.com': 'PHP/5.2' | ||
43 | calls: | 58 | calls: |
44 | - [ setLogger, [ "@logger" ] ] | 59 | - [ setLogger, [ "@logger" ] ] |
45 | tags: | 60 | tags: |