glib-web 0.5.37 → 0.5.38

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7cb7c646f770095389bca3804f3d1ab86c2d2dc240cdb934ccef1a16b93253be
4
- data.tar.gz: fa79aaa7267315df1f0c34be561049c8a75e7ed333ad1eb630041bc7d654d0ff
3
+ metadata.gz: 347507dbedf205e468be58cca441b8dac67e217be1895537c2f7b347d69f6412
4
+ data.tar.gz: e611ba1dbf75e8affbaae6e29dc5c5f752c8286edc1a205c31a32ac4650b90ff
5
5
  SHA512:
6
- metadata.gz: 3f42d123df1f2b643c0f5db79b6e6acf9bb46e3eec41a0b3575c438ff18ed21ba18b08e67d52ca8056f7f68b3b1079184f6b5e70b1c235bd6d40b56cb536548a
7
- data.tar.gz: 177314114e31104840908492faf6a9042205e6586cfcefb8adc1e5004d465f56ecdbffa18d58b799335b2be19278a8fb6d8cfcbb7e04909988c3c4f8a3f941e0
6
+ metadata.gz: f57cd676fcad8b49add5d460be9707726e42cfa9db6fd701d7d3250ebe9cae9a2930429a2f6b4be56ca64b0fd6d655bcc01c245c7aa4cfa16ed2419cdfa1194c
7
+ data.tar.gz: 9d66d6fac6e1f00a2c3131e042302309ea0cb923576da3606a84a988b9d1feae91c2dc85c7114d6dc8b07994b1faa617ecbbbf2c804ddbe060ceb3e610f871c0
@@ -56,7 +56,9 @@ module Glib::Json::Ui
56
56
  @__json_ui_activated = true
57
57
  request.variant = :ui
58
58
 
59
- if request.format.html? && params[:_skip_render] != 'true'
59
+ # Some bots (e.g. Line and DuckDuckGo) passes `*/*` in the `Accept` header
60
+ is_html = request.format.html? || request.format == '*/*'
61
+ if is_html && params[:_skip_render] != 'true'
60
62
  @__json_ui_rendering = :vue
61
63
  request.format = 'json'
62
64
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glib-web
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.37
4
+ version: 0.5.38
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''